From de7453bc6fc4f47e010e01f63d8d259019c3f7d1 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Thu, 3 Jun 2021 13:37:51 +0200 Subject: [PATCH] cli: Use cosmjs-types --- packages/cli/examples/get_akash_vesting_account.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/examples/get_akash_vesting_account.ts b/packages/cli/examples/get_akash_vesting_account.ts index 89134810..c7c5fc01 100644 --- a/packages/cli/examples/get_akash_vesting_account.ts +++ b/packages/cli/examples/get_akash_vesting_account.ts @@ -1,6 +1,6 @@ import { QueryClient, setupAuthExtension } from "@cosmjs/stargate"; -import { Any } from "@cosmjs/stargate/build/codec/google/protobuf/any"; import { Tendermint34Client } from "@cosmjs/tendermint-rpc"; +import { Any } from "cosmjs-types/google/protobuf/any"; // https://github.com/ovrclk/net/blob/24ddbb427/mainnet/rpc-nodes.txt const tmClient = await Tendermint34Client.connect("http://rpc.akash.forbole.com:80"); @@ -8,4 +8,4 @@ const client = QueryClient.withExtensions(tmClient, setupAuthExtension); // Arbitrary entry from https://raw.githubusercontent.com/ovrclk/net/24ddbb427/mainnet/genesis.json const account = await client.auth.unverified.account("akash1qy0vur3fl2ucztpzcrfea7mc8jwz8xjmvq7qvy"); -console.log(Any.toJSON(account)) +console.log(Any.toJSON(account));