stargate: Fix distribution amino types

This commit is contained in:
willclarktech
2021-01-28 13:06:56 +00:00
parent b3b7b91f63
commit 00d4990ebd
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ describe("AminoTypes", () => {
value: msg,
});
const expected: MsgSetWithdrawAddress = {
type: "cosmos-sdk/MsgSetWithdrawAddress",
type: "cosmos-sdk/MsgModifyWithdrawAddress",
value: {
delegator_address: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
withdraw_address: "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5",
@@ -136,7 +136,7 @@ describe("AminoTypes", () => {
value: msg,
});
const expected: MsgWithdrawDelegatorReward = {
type: "cosmos-sdk/MsgWithdrawDelegatorReward",
type: "cosmos-sdk/MsgWithdrawDelegationReward",
value: {
delegator_address: "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6",
validator_address: "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5",
+2 -2
View File
@@ -111,7 +111,7 @@ function createDefaultTypes(prefix: string): Record<string, AminoConverter> {
}),
},
"/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": {
aminoType: "cosmos-sdk/MsgSetWithdrawAddress",
aminoType: "cosmos-sdk/MsgModifyWithdrawAddress",
toAmino: ({
delegatorAddress,
withdrawAddress,
@@ -132,7 +132,7 @@ function createDefaultTypes(prefix: string): Record<string, AminoConverter> {
}),
},
"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": {
aminoType: "cosmos-sdk/MsgWithdrawDelegatorReward",
aminoType: "cosmos-sdk/MsgWithdrawDelegationReward",
toAmino: ({
delegatorAddress,
validatorAddress,