stargate: Update PrivateStargateClient type
This commit is contained in:
parent
9a2b61bfa8
commit
203c811eb7
@ -45,7 +45,7 @@ describe("StargateClient", () => {
|
||||
pendingWithoutSimapp();
|
||||
const client = await StargateClient.connect(simapp.tendermintUrl);
|
||||
const openedClient = (client as unknown) as PrivateStargateClient;
|
||||
const getCodeSpy = spyOn(openedClient.tmClient, "status").and.callThrough();
|
||||
const getCodeSpy = spyOn(openedClient.tmClient!, "status").and.callThrough();
|
||||
|
||||
expect(await client.getChainId()).toEqual(simapp.chainId); // from network
|
||||
expect(await client.getChainId()).toEqual(simapp.chainId); // from cache
|
||||
|
||||
@ -110,7 +110,7 @@ export function coinFromProto(input: Coin): Coin {
|
||||
|
||||
/** Use for testing only */
|
||||
export interface PrivateStargateClient {
|
||||
readonly tmClient: Tendermint34Client;
|
||||
readonly tmClient: Tendermint34Client | undefined;
|
||||
}
|
||||
|
||||
export class StargateClient {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user