diff --git a/x/gmm/types/message_withdraw.go b/x/gmm/types/message_withdraw.go index e9115993..fee3061c 100644 --- a/x/gmm/types/message_withdraw.go +++ b/x/gmm/types/message_withdraw.go @@ -1,6 +1,7 @@ package types import ( + "fmt" "strings" sdkerrors "cosmossdk.io/errors" @@ -63,7 +64,7 @@ func (msg *MsgWithdraw) ValidateBasic() error { return sdkerrors.Wrap(ErrInvalidTokenAmount, "share amount cannot be zero") } - if msg.PoolId != msg.Share.GetDenom() { + if fmt.Sprintf("side/gmm/%s", msg.PoolId) != msg.Share.GetDenom() { return sdkerrors.Wrapf(ErrMismatchedShareDenom, "share denom and pool id do not match") } return nil