From 3a18b0ec43988c330dc3b57e9f03f1a85ba4067c Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 16 Mar 2021 14:07:31 +0100 Subject: [PATCH] Organize Akash account source comments --- packages/cli/examples/get_akash_vesting_account.ts | 4 +++- packages/stargate/src/accounts.spec.ts | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/cli/examples/get_akash_vesting_account.ts b/packages/cli/examples/get_akash_vesting_account.ts index cac9bdf365..891348106d 100644 --- a/packages/cli/examples/get_akash_vesting_account.ts +++ b/packages/cli/examples/get_akash_vesting_account.ts @@ -2,8 +2,10 @@ import { QueryClient, setupAuthExtension } from "@cosmjs/stargate"; import { Any } from "@cosmjs/stargate/build/codec/google/protobuf/any"; import { Tendermint34Client } from "@cosmjs/tendermint-rpc"; -// https://github.com/ovrclk/net/blob/24ddbb427b0c15/mainnet/rpc-nodes.txt +// https://github.com/ovrclk/net/blob/24ddbb427/mainnet/rpc-nodes.txt const tmClient = await Tendermint34Client.connect("http://rpc.akash.forbole.com:80"); 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)) diff --git a/packages/stargate/src/accounts.spec.ts b/packages/stargate/src/accounts.spec.ts index bd93e06294..62fafec07d 100644 --- a/packages/stargate/src/accounts.spec.ts +++ b/packages/stargate/src/accounts.spec.ts @@ -4,8 +4,7 @@ import { Any } from "./codec/google/protobuf/any"; describe("accounts", () => { describe("accountFromAny", () => { it("works for PeriodicVestingAccount", () => { - // Arbitrary entry from https://raw.githubusercontent.com/ovrclk/net/24ddbb427/mainnet/genesis.json - // queried from chain via `packages/cli/examples/get_vesting_account.ts`. + // Queried from chain via `packages/cli/examples/get_akash_vesting_account.ts`. const any = Any.fromJSON({ typeUrl: "/cosmos.vesting.v1beta1.PeriodicVestingAccount", value: