From 00d4990ebdfb12ba95b590c56ae54e39962321c5 Mon Sep 17 00:00:00 2001 From: willclarktech Date: Thu, 28 Jan 2021 13:06:56 +0000 Subject: [PATCH] stargate: Fix distribution amino types --- packages/stargate/src/aminotypes.spec.ts | 4 ++-- packages/stargate/src/aminotypes.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/stargate/src/aminotypes.spec.ts b/packages/stargate/src/aminotypes.spec.ts index 85ccd821..eb6e2f24 100644 --- a/packages/stargate/src/aminotypes.spec.ts +++ b/packages/stargate/src/aminotypes.spec.ts @@ -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", diff --git a/packages/stargate/src/aminotypes.ts b/packages/stargate/src/aminotypes.ts index 11b217ef..3f7a6978 100644 --- a/packages/stargate/src/aminotypes.ts +++ b/packages/stargate/src/aminotypes.ts @@ -111,7 +111,7 @@ function createDefaultTypes(prefix: string): Record { }), }, "/cosmos.distribution.v1beta1.MsgSetWithdrawAddress": { - aminoType: "cosmos-sdk/MsgSetWithdrawAddress", + aminoType: "cosmos-sdk/MsgModifyWithdrawAddress", toAmino: ({ delegatorAddress, withdrawAddress, @@ -132,7 +132,7 @@ function createDefaultTypes(prefix: string): Record { }), }, "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": { - aminoType: "cosmos-sdk/MsgWithdrawDelegatorReward", + aminoType: "cosmos-sdk/MsgWithdrawDelegationReward", toAmino: ({ delegatorAddress, validatorAddress,