From dfb83a3e3436ecf23706c366d05ad5f470ec84be Mon Sep 17 00:00:00 2001 From: zhangzhiqiang <745124335@aa.com> Date: Wed, 11 Jul 2018 17:15:28 +0800 Subject: [PATCH] remove token's denom check --- x/stake/msg.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/x/stake/msg.go b/x/stake/msg.go index a0922bb8727d..f2e6735878d3 100644 --- a/x/stake/msg.go +++ b/x/stake/msg.go @@ -66,9 +66,6 @@ func (msg MsgCreateValidator) ValidateBasic() sdk.Error { if msg.ValidatorAddr == nil { return ErrValidatorEmpty(DefaultCodespace) } - if msg.Bond.Denom != StakingToken { - return ErrBadBondingDenom(DefaultCodespace) - } if msg.Bond.Amount <= 0 { return ErrBadBondingAmount(DefaultCodespace) } @@ -175,9 +172,6 @@ func (msg MsgDelegate) ValidateBasic() sdk.Error { if msg.ValidatorAddr == nil { return ErrBadValidatorAddr(DefaultCodespace) } - if msg.Bond.Denom != StakingToken { - return ErrBadBondingDenom(DefaultCodespace) - } if msg.Bond.Amount <= 0 { return ErrBadBondingAmount(DefaultCodespace) } @@ -239,5 +233,6 @@ func (msg MsgUnbond) ValidateBasic() sdk.Error { return ErrBadShares(DefaultCodespace) } } + return nil }