Skip to content

Commit

Permalink
[WEL-000] update @cosmjs module for stargate getTx error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kairoski03 committed Dec 27, 2023
1 parent 851a05a commit 18986a0
Show file tree
Hide file tree
Showing 7 changed files with 28,894 additions and 18,759 deletions.
46,042 changes: 27,519 additions & 18,523 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 17 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.1.0-beta",
"private": true,
"dependencies": {
"@cosmjs/math": "^0.28.11",
"@cosmjs/proto-signing": "^0.28.11",
"@cosmjs/stargate": "^0.28.11",
"@cosmjs/tendermint-rpc": "^0.28.11",
"@cosmjs/math": "^0.32.2",
"@cosmjs/proto-signing": "^0.32.2",
"@cosmjs/stargate": "^0.32.2",
"@cosmjs/tendermint-rpc": "^0.32.2",
"@dexfair/celo-web-signer": "^0.5.6",
"@emotion/react": "^11.9.3",
"@emotion/styled": "^11.9.3",
Expand Down Expand Up @@ -117,6 +117,18 @@
"prettier": "^2.7.1",
"process": "^0.11.10",
"react-app-rewired": "^2.2.1",
"stream-browserify": "^3.0.0"
"stream-browserify": "^3.0.0",
"ts-jest": "^29.1.1"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "jsdom",
"modulePaths": [
"<rootDir>"
],
"moduleNameMapper": {
"axios": "node_modules/axios/dist/axios.js",
"^uuid$": "uuid"
}
}
}
2 changes: 1 addition & 1 deletion src/components/juno/Instantiate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export const Instantiate: React.FunctionComponent<InterfaceProps> = ({
waitGetContract(hash);
return;
}
log.info('!!! waitGetContract', JSON.stringify(result, null, 2));
console.log('!!! waitGetContract', result);

if (result.code !== 0) {
log.debug(`rawLog=${result?.rawLog}`);
Expand Down
2 changes: 1 addition & 1 deletion src/components/juno/StoreCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const StoreCode: React.FunctionComponent<InterfaceProps> = ({
return new Promise(function (resolve) {
const id = setInterval(async function () {
const result = await stargateClient.getTx(hash);
log.info('!!! waitGetCodeID interval', JSON.stringify(result, null, 2));
console.log('!!! waitGetCodeID interval', result);
if (result) {
const code_id = JSON.parse(result.rawLog)[0].events[1].attributes[1].value;
log.debug(code_id);
Expand Down
2 changes: 1 addition & 1 deletion src/components/neutron/Instantiate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export const Instantiate: React.FunctionComponent<InterfaceProps> = ({
waitGetContract(hash);
return;
}
log.info('!!! waitGetContract', JSON.stringify(result, null, 2));
console.log('!!! waitGetContract', result);

if (result.code !== 0) {
log.debug(`rawLog=${result?.rawLog}`);
Expand Down
2 changes: 1 addition & 1 deletion src/components/neutron/StoreCode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const StoreCode: React.FunctionComponent<InterfaceProps> = ({
return new Promise(function (resolve) {
const id = setInterval(async function () {
const result = await stargateClient.getTx(hash);
log.info('!!! waitGetCodeID interval', JSON.stringify(result, null, 2));
console.log('!!! waitGetCodeID interval', result);
if (result) {
const code_id = JSON.parse(result.rawLog)[0].events[1].attributes[1].value;
log.debug(code_id);
Expand Down
Loading

0 comments on commit 18986a0

Please sign in to comment.