Skip to content

Commit

Permalink
injective tx fails to get the right status (#2368)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianscatularo committed Aug 13, 2024
1 parent 8d32980 commit bce9f15
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
18 changes: 17 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wormhole-connect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@wormhole-foundation/sdk-icons": "^0.6.8",
"@xlabs-libs/wallet-aggregator-aptos": "^0.0.1-alpha.14",
"@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.18",
"@xlabs-libs/wallet-aggregator-cosmos": "^0.0.1-alpha.14",
"@xlabs-libs/wallet-aggregator-cosmos": "^0.0.1-alpha.15",
"@xlabs-libs/wallet-aggregator-cosmos-evm": "^0.0.1-alpha.6",
"@xlabs-libs/wallet-aggregator-evm": "^0.0.1-alpha.42",
"@xlabs-libs/wallet-aggregator-sei": "^0.0.1-alpha.14",
Expand Down
4 changes: 2 additions & 2 deletions wormhole-connect/src/routes/cosmosGateway/utils/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ export async function getTmClient(
// from cosmjs: https://github.com/cosmos/cosmjs/blob/358260bff71c9d3e7ad6644fcf64dc00325cdfb9/packages/stargate/src/stargateclient.ts#L218
let tmClient: TendermintClient;
const tm37Client = await Tendermint37Client.connect(rpc);
const version = (await tm37Client.status()).nodeInfo.version;
if (version.startsWith('0.37.')) {
const version = (await tm37Client.status()).nodeInfo.version.split('.');
if (parseInt(version[1], 10) >= 37) {
tmClient = tm37Client;
} else {
tm37Client.disconnect();
Expand Down

0 comments on commit bce9f15

Please sign in to comment.