@cosmjs/cosmwasm
Advanced tools
Comparing version 0.23.0-alpha.1 to 0.23.0
@@ -55,3 +55,10 @@ "use strict"; | ||
const data = unwrapWasmResponse(responseData); | ||
return data.length === 0 ? null : encoding_1.fromBase64(data[0].val); | ||
if (Array.isArray(data)) { | ||
// The CosmWasm 0.10 interface | ||
return data.length === 0 ? null : encoding_1.fromBase64(data[0].val); | ||
} | ||
else { | ||
// The CosmWasm 0.11 interface | ||
return !data ? null : encoding_1.fromBase64(data); // Yes, we cannot differentiate empty fields from non-existent fields :( | ||
} | ||
}, | ||
@@ -58,0 +65,0 @@ queryContractSmart: async (address, query) => { |
@@ -28,3 +28,3 @@ "use strict"; | ||
const defaultGasLimits = { | ||
upload: 1000000, | ||
upload: 1500000, | ||
init: 500000, | ||
@@ -31,0 +31,0 @@ migrate: 200000, |
{ | ||
"name": "@cosmjs/cosmwasm", | ||
"version": "0.23.0-alpha.1", | ||
"version": "0.23.0", | ||
"description": "CosmWasm SDK", | ||
@@ -43,7 +43,7 @@ "author": "Ethan Frey <ethanfrey@users.noreply.github.com>", | ||
"dependencies": { | ||
"@cosmjs/crypto": "^0.23.0-alpha.1", | ||
"@cosmjs/encoding": "^0.23.0-alpha.1", | ||
"@cosmjs/launchpad": "^0.23.0-alpha.1", | ||
"@cosmjs/math": "^0.23.0-alpha.1", | ||
"@cosmjs/utils": "^0.23.0-alpha.1", | ||
"@cosmjs/crypto": "^0.23.0", | ||
"@cosmjs/encoding": "^0.23.0", | ||
"@cosmjs/launchpad": "^0.23.0", | ||
"@cosmjs/math": "^0.23.0", | ||
"@cosmjs/utils": "^0.23.0", | ||
"axios": "^0.19.0", | ||
@@ -56,3 +56,3 @@ "pako": "^1.0.11" | ||
}, | ||
"gitHead": "864f3d237271b6c93b8bf1913165277ce5890575" | ||
"gitHead": "432801364c32ea4a2a956b8525f324c5a1e5e140" | ||
} |
@@ -9,7 +9,8 @@ # @cosmjs/cosmwasm | ||
| CosmWasm | x/wasm | @cosmjs/cosmwasm | | ||
| -------- | ------ | ---------------- | | ||
| 0.10 | 0.10 | `^0.22.0` | | ||
| 0.9 | 0.9 | `^0.21.0` | | ||
| 0.8 | 0.8 | `^0.20.1` | | ||
| CosmWasm | x/wasm | @cosmjs/cosmwasm | | ||
| --------- | --------- | ---------------- | | ||
| 0.10-0.11 | 0.10-0.11 | `^0.23.0` | | ||
| 0.10 | 0.10 | `^0.22.0` | | ||
| 0.9 | 0.9 | `^0.21.0` | | ||
| 0.8 | 0.8 | `^0.20.1` | | ||
@@ -22,3 +23,3 @@ ## Development | ||
cd packages/cosmwasm | ||
export HACKATOM_URL=https://github.com/CosmWasm/cosmwasm/releases/download/v0.10.0-alpha2/hackatom.wasm | ||
export HACKATOM_URL=https://github.com/CosmWasm/cosmwasm/releases/download/v0.11.0-alpha4/hackatom.wasm | ||
echo "{\"// source\": \"$HACKATOM_URL\", \"data\": \"$(curl -sS --location $HACKATOM_URL | base64)\" }" | jq > src/testdata/contract.json | ||
@@ -25,0 +26,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
92578
1396
31
1
Updated@cosmjs/crypto@^0.23.0
Updated@cosmjs/encoding@^0.23.0
Updated@cosmjs/launchpad@^0.23.0
Updated@cosmjs/math@^0.23.0
Updated@cosmjs/utils@^0.23.0