mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-10 13:47:12 +00:00
feat: convert creation_height from bigint to string
This commit is contained in:
parent
4ff0a5e9b7
commit
c444e8e16f
@ -220,7 +220,7 @@ describe("AminoTypes", () => {
|
||||
delegator_address: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
||||
validator_address: "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5",
|
||||
amount: coin(1234, "ucosm"),
|
||||
creation_height: BigInt("1"),
|
||||
creation_height: "1",
|
||||
},
|
||||
};
|
||||
expect(aminoMsg).toEqual(expected);
|
||||
@ -396,7 +396,7 @@ describe("AminoTypes", () => {
|
||||
delegator_address: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
|
||||
validator_address: "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5",
|
||||
amount: coin(1234, "ucosm"),
|
||||
creation_height: BigInt("1"),
|
||||
creation_height: "1",
|
||||
},
|
||||
};
|
||||
const msg = new AminoTypes(createStakingAminoConverters()).fromAmino(aminoMsg);
|
||||
|
@ -150,7 +150,7 @@ export interface AminoMsgCancelUnbondingDelegation extends AminoMsg {
|
||||
readonly delegator_address: string;
|
||||
readonly validator_address: string;
|
||||
readonly amount: Coin;
|
||||
readonly creation_height: bigint;
|
||||
readonly creation_height: string;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user