From 21d26cf3bde3e0400d12ef443ecff2fb6fb0688d Mon Sep 17 00:00:00 2001 From: pharr117 Date: Mon, 22 Jan 2024 19:31:01 -0500 Subject: [PATCH] Add ignorer for CancelUnbondingDelegation --- core/tx.go | 5 +++-- cosmos/modules/staking/types.go | 11 ++++++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/core/tx.go b/core/tx.go index 384f163..5eb1041 100644 --- a/core/tx.go +++ b/core/tx.go @@ -105,8 +105,9 @@ var messageTypeIgnorer = map[string]interface{}{ slashing.MsgUnjail: nil, slashing.MsgUpdateParams: nil, // Creating and editing validator is not taxable - staking.MsgCreateValidator: nil, - staking.MsgEditValidator: nil, + staking.MsgCreateValidator: nil, + staking.MsgEditValidator: nil, + staking.MsgCancelUnbondingDelegation: nil, // No rewards are withdrawn when cancelling an unbonding delegation // Delegating and Locking are not taxable superfluid.MsgSuperfluidDelegate: nil, superfluid.MsgSuperfluidUndelegate: nil, diff --git a/cosmos/modules/staking/types.go b/cosmos/modules/staking/types.go index fd80665..853d8ef 100644 --- a/cosmos/modules/staking/types.go +++ b/cosmos/modules/staking/types.go @@ -14,11 +14,12 @@ import ( ) const ( - MsgDelegate = "/cosmos.staking.v1beta1.MsgDelegate" - MsgUndelegate = "/cosmos.staking.v1beta1.MsgUndelegate" - MsgBeginRedelegate = "/cosmos.staking.v1beta1.MsgBeginRedelegate" - MsgCreateValidator = "/cosmos.staking.v1beta1.MsgCreateValidator" // An explicitly ignored msg for tx parsing purposes - MsgEditValidator = "/cosmos.staking.v1beta1.MsgEditValidator" // An explicitly ignored msg for tx parsing purposes + MsgDelegate = "/cosmos.staking.v1beta1.MsgDelegate" + MsgUndelegate = "/cosmos.staking.v1beta1.MsgUndelegate" + MsgBeginRedelegate = "/cosmos.staking.v1beta1.MsgBeginRedelegate" + MsgCreateValidator = "/cosmos.staking.v1beta1.MsgCreateValidator" // An explicitly ignored msg for tx parsing purposes + MsgEditValidator = "/cosmos.staking.v1beta1.MsgEditValidator" // An explicitly ignored msg for tx parsing purposes + MsgCancelUnbondingDelegation = "/cosmos.staking.v1beta1.MsgCancelUnbondingDelegation" ) type WrapperMsgDelegate struct {