stargate: Update PrivateStargateClient type

This commit is contained in:
willclarktech 2021-03-25 14:53:32 +01:00
parent 9a2b61bfa8
commit 203c811eb7
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 {