Skip to content

Commit

Permalink
fix cosmos query client issue
Browse files Browse the repository at this point in the history
  • Loading branch information
barnjamin committed Jan 2, 2024
1 parent c33fe76 commit a2d38c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions platforms/cosmwasm/src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
setupBankExtension,
setupIbcExtension,
} from "@cosmjs/stargate";
import { TendermintClient } from "@cosmjs/tendermint-rpc";

import {
Chain,
Expand Down Expand Up @@ -58,9 +57,7 @@ export class CosmwasmPlatform<N extends Network> extends PlatformContext<N, Cosm
}

static getQueryClient = (rpc: CosmWasmClient): QueryClient & BankExtension & IbcExtension => {
// @ts-ignore -- access private attribute
const tmClient: TendermintClient = rpc.getTmClient()!;
return QueryClient.withExtensions(tmClient, setupBankExtension, setupIbcExtension);
return QueryClient.withExtensions(rpc["cometClient"], setupBankExtension, setupIbcExtension);
};

// cached channels from config if available
Expand Down

0 comments on commit a2d38c9

Please sign in to comment.