feat: convert creation_height from bigint to string

This commit is contained in:
Tuan Phan Anh 2024-05-18 21:04:41 +07:00 committed by GitHub
parent 4ff0a5e9b7
commit c444e8e16f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -220,7 +220,7 @@ describe("AminoTypes", () => {
delegator_address: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6", delegator_address: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
validator_address: "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5", validator_address: "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5",
amount: coin(1234, "ucosm"), amount: coin(1234, "ucosm"),
creation_height: BigInt("1"), creation_height: "1",
}, },
}; };
expect(aminoMsg).toEqual(expected); expect(aminoMsg).toEqual(expected);
@ -396,7 +396,7 @@ describe("AminoTypes", () => {
delegator_address: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6", delegator_address: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
validator_address: "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5", validator_address: "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5",
amount: coin(1234, "ucosm"), amount: coin(1234, "ucosm"),
creation_height: BigInt("1"), creation_height: "1",
}, },
}; };
const msg = new AminoTypes(createStakingAminoConverters()).fromAmino(aminoMsg); const msg = new AminoTypes(createStakingAminoConverters()).fromAmino(aminoMsg);

View File

@ -150,7 +150,7 @@ export interface AminoMsgCancelUnbondingDelegation extends AminoMsg {
readonly delegator_address: string; readonly delegator_address: string;
readonly validator_address: string; readonly validator_address: string;
readonly amount: Coin; readonly amount: Coin;
readonly creation_height: bigint; readonly creation_height: string;
}; };
} }