@cosmwasm/ts-codegen 0.30.0 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main/utils/schemas.js +1 -2
- package/module/utils/schemas.js +1 -2
- package/package.json +3 -3
- package/src/utils/schemas.ts +1 -3
package/main/utils/schemas.js
CHANGED
@@ -127,8 +127,7 @@ exports.findQueryMsg = findQueryMsg;
|
|
127
127
|
|
128
128
|
var findExecuteMsg = function findExecuteMsg(schemas) {
|
129
129
|
var ExecuteMsg = schemas.find(function (schema) {
|
130
|
-
return schema.title
|
131
|
-
schema.title === 'ExecuteMsgForEmpty';
|
130
|
+
return schema.title.startsWith('ExecuteMsg');
|
132
131
|
});
|
133
132
|
return ExecuteMsg;
|
134
133
|
};
|
package/module/utils/schemas.js
CHANGED
@@ -72,8 +72,7 @@ export const findQueryMsg = schemas => {
|
|
72
72
|
return QueryMsg;
|
73
73
|
};
|
74
74
|
export const findExecuteMsg = schemas => {
|
75
|
-
const ExecuteMsg = schemas.find(schema => schema.title
|
76
|
-
schema.title === 'ExecuteMsgForEmpty');
|
75
|
+
const ExecuteMsg = schemas.find(schema => schema.title.startsWith('ExecuteMsg'));
|
77
76
|
return ExecuteMsg;
|
78
77
|
};
|
79
78
|
export const findAndParseTypes = async schemas => {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@cosmwasm/ts-codegen",
|
3
|
-
"version": "0.30.
|
3
|
+
"version": "0.30.1",
|
4
4
|
"description": "@cosmwasm/ts-codegen converts your CosmWasm smart contracts into dev-friendly TypeScript classes so you can focus on shipping code.",
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
6
6
|
"homepage": "https://github.com/cosmwasm/ts-codegen",
|
@@ -96,7 +96,7 @@
|
|
96
96
|
"parse-package-name": "1.0.0",
|
97
97
|
"rimraf": "3.0.2",
|
98
98
|
"shelljs": "0.8.5",
|
99
|
-
"wasm-ast-types": "^0.23.
|
99
|
+
"wasm-ast-types": "^0.23.1"
|
100
100
|
},
|
101
|
-
"gitHead": "
|
101
|
+
"gitHead": "14dc44173f67be9b0b64dd642697c62a1a3d0211"
|
102
102
|
}
|
package/src/utils/schemas.ts
CHANGED
@@ -79,9 +79,7 @@ export const findQueryMsg = (schemas) => {
|
|
79
79
|
|
80
80
|
export const findExecuteMsg = (schemas) => {
|
81
81
|
const ExecuteMsg = schemas.find(schema =>
|
82
|
-
|
83
|
-
schema.title === 'ExecuteMsg_for_Empty' || // if cleanse is used, this is never
|
84
|
-
schema.title === 'ExecuteMsgForEmpty'
|
82
|
+
schema.title.startsWith('ExecuteMsg')
|
85
83
|
);
|
86
84
|
return ExecuteMsg;
|
87
85
|
};
|