diff --git a/package-lock.json b/package-lock.json index 980ccd2f4..e6435941a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34760,7 +34760,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", @@ -34979,6 +34979,22 @@ "superstruct": "^2.0.2" } }, + "wormhole-connect/node_modules/@xlabs-libs/wallet-aggregator-core": { + "version": "0.0.1-alpha.21", + "resolved": "https://registry.npmjs.org/@xlabs-libs/wallet-aggregator-core/-/wallet-aggregator-core-0.0.1-alpha.21.tgz", + "integrity": "sha512-sG2S9cgrzR8+nvAE4Q5PE/JwELk4G5liA4qYk8f5XD8lf4RTzeq7Hnxa+GUnC9Dkh3CI0SKfQpmDo+78/FJKBQ==", + "dependencies": { + "eventemitter3": "^5.0.0" + } + }, + "wormhole-connect/node_modules/@xlabs-libs/wallet-aggregator-cosmos": { + "version": "0.0.1-alpha.15", + "resolved": "https://registry.npmjs.org/@xlabs-libs/wallet-aggregator-cosmos/-/wallet-aggregator-cosmos-0.0.1-alpha.15.tgz", + "integrity": "sha512-DXNuvjdYdkic5yBuxZcD+iHZE1im+Z++8fz4sP1koLWTKDKjkBwGz2UJOGKta5B9nAav/6Obsf75axW7FM93Jw==", + "dependencies": { + "@xlabs-libs/wallet-aggregator-core": "^0.0.1-alpha.21" + } + }, "wormhole-connect/node_modules/@xlabs-libs/wallet-aggregator-evm": { "version": "0.0.1-alpha.42", "resolved": "https://registry.npmjs.org/@xlabs-libs/wallet-aggregator-evm/-/wallet-aggregator-evm-0.0.1-alpha.42.tgz", diff --git a/wormhole-connect/package.json b/wormhole-connect/package.json index 2136170a1..f1e5527e5 100644 --- a/wormhole-connect/package.json +++ b/wormhole-connect/package.json @@ -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", diff --git a/wormhole-connect/src/routes/cosmosGateway/utils/client.ts b/wormhole-connect/src/routes/cosmosGateway/utils/client.ts index b6116e2a9..b59a19415 100644 --- a/wormhole-connect/src/routes/cosmosGateway/utils/client.ts +++ b/wormhole-connect/src/routes/cosmosGateway/utils/client.ts @@ -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();