fix(sdk): Access correct consensus client when estimating cosmwasm txs (#4249)

### Description

`tmClient` (i.e. TendermintClient) is now `cometClient`

### Related issues

Related to #4209 but not surfaced because of ts-ignore, which is
necessary because the required data isn't surfaced properly by CosmJS

### Backward compatibility

Yes

### Testing

Tested in Warp UI
pull/4250/head
J M Rossy 4 months ago committed by GitHub
parent c6bf71d1b3
commit 69a39da1cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      .changeset/chatty-suns-breathe.md
  2. 2
      typescript/sdk/src/providers/transactionFeeEstimators.ts

@ -0,0 +1,5 @@
---
'@hyperlane-xyz/sdk': patch
---
Fix issue with cosmos tx estimation

@ -209,7 +209,7 @@ export async function estimateTransactionFeeCosmJsWasm({
};
const wasmClient = await provider.provider;
// @ts-ignore access a private field here to extract client URL
const url: string = wasmClient.tmClient.client.url;
const url: string = wasmClient.cometClient.client.url;
const stargateClient = StargateClient.connect(url);
return estimateTransactionFeeCosmJs({

Loading…
Cancel
Save