Use full PubKey in validator.pubkey

This commit is contained in:
Simon Warta 2020-08-10 09:29:09 +02:00
parent 7578e00118
commit 78b80555eb
2 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,3 @@
import { pubkeyType } from "@cosmjs/launchpad";
import { assert } from "@cosmjs/utils";
import { StargateClient } from "./stargateclient";
@ -39,10 +38,7 @@ describe("StargateClient", () => {
assert(account);
expect(account).toEqual({
address: validator.address,
pubkey: {
type: pubkeyType.secp256k1,
value: validator.pubkey,
},
pubkey: validator.pubkey,
accountNumber: validator.accountNumber,
sequence: validator.sequence,
});

View File

@ -26,7 +26,10 @@ export const unused = {
export const validator = {
/** From first gentx's auth_info.signer_infos in scripts/simapp/template/.simapp/config/genesis.json */
pubkey: "AnFadRAdh6Fl7robHe8jywDMKSWQQjB7SlpoqGsX9Ghw",
pubkey: {
type: "tendermint/PubKeySecp256k1",
value: "AnFadRAdh6Fl7robHe8jywDMKSWQQjB7SlpoqGsX9Ghw",
},
/** delegator_address from /cosmos.staking.MsgCreateValidator in scripts/simapp/template/.simapp/config/genesis.json */
address: "cosmos12gm9sa666hywxu9nzzmp7hyl7a55hvg769w2kz",
accountNumber: 0,