Skip to content

Commit

Permalink
remove token's denom check
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhiqiang committed Jul 11, 2018
1 parent 1e6d26a commit dfb83a3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions x/stake/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down Expand Up @@ -239,5 +233,6 @@ func (msg MsgUnbond) ValidateBasic() sdk.Error {
return ErrBadShares(DefaultCodespace)
}
}

return nil
}

0 comments on commit dfb83a3

Please sign in to comment.