Skip to content

Commit

Permalink
Merge pull request #9 from zhiqiang-bianjie/zhiqiang/v0.19.1-rc1
Browse files Browse the repository at this point in the history
remove token's denom check
  • Loading branch information
zhangyelong authored Jul 11, 2018
2 parents 1e6d26a + dfb83a3 commit b0071fc
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 b0071fc

Please sign in to comment.