mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 13:47:12 +00:00
Fix PrivateStargateClient
This commit is contained in:
parent
f58530f449
commit
2b3e96ff1d
@ -97,7 +97,7 @@ describe("StargateClient", () => {
|
||||
pendingWithoutSimapp();
|
||||
const client = await StargateClient.connect(simapp.tendermintUrl);
|
||||
const openedClient = client as unknown as PrivateStargateClient;
|
||||
const getCodeSpy = spyOn(openedClient.cometClient!, "status").and.callThrough();
|
||||
const getCodeSpy = spyOn(openedClient.client.cometClient!, "status").and.callThrough();
|
||||
|
||||
expect(await client.getChainId()).toEqual(simapp.chainId); // from network
|
||||
expect(await client.getChainId()).toEqual(simapp.chainId); // from cache
|
||||
|
@ -23,7 +23,9 @@ import { SearchTxQuery } from "./search";
|
||||
|
||||
/** Use for testing only */
|
||||
export interface PrivateStargateClient {
|
||||
readonly cometClient: CometClient | undefined;
|
||||
readonly client: {
|
||||
readonly cometClient: CometClient | undefined;
|
||||
};
|
||||
}
|
||||
|
||||
export interface StargateClientOptions {
|
||||
|
Loading…
x
Reference in New Issue
Block a user