@keplr-wallet/cosmos
Advanced tools
Comparing version 0.9.12 to 0.9.16
@@ -173,2 +173,10 @@ "use strict"; | ||
this.subscribeTx(hash).then(resolve); | ||
}).then((tx) => { | ||
// Occasionally, even if the subscribe tx event occurs, the state through query is not changed yet. | ||
// Perhaps it is because the block has not been committed yet even though the result of deliverTx in tendermint is complete. | ||
// This method is usually used to reflect the state change through query when tx is completed. | ||
// The simplest solution is to just add a little delay. | ||
return new Promise((resolve) => { | ||
setTimeout(() => resolve(tx), 100); | ||
}); | ||
}); | ||
@@ -175,0 +183,0 @@ } |
{ | ||
"name": "@keplr-wallet/cosmos", | ||
"version": "0.9.12", | ||
"version": "0.9.16", | ||
"main": "build/index.js", | ||
@@ -31,3 +31,3 @@ "author": "chainapsis", | ||
}, | ||
"gitHead": "5fef78da9d1a1637e4621bd5ca946509ab6152c0" | ||
"gitHead": "20fe73bd3a330c7e476e18c4c2db12d87083eb77" | ||
} |
@@ -227,2 +227,10 @@ import { TxEventMap, WsReadyState } from "./types"; | ||
this.subscribeTx(hash).then(resolve); | ||
}).then((tx) => { | ||
// Occasionally, even if the subscribe tx event occurs, the state through query is not changed yet. | ||
// Perhaps it is because the block has not been committed yet even though the result of deliverTx in tendermint is complete. | ||
// This method is usually used to reflect the state change through query when tx is completed. | ||
// The simplest solution is to just add a little delay. | ||
return new Promise((resolve) => { | ||
setTimeout(() => resolve(tx), 100); | ||
}); | ||
}); | ||
@@ -229,0 +237,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1101740
21089