Skip to content

Commit

Permalink
fix: remove BEP20 issue token check that totalSupply should be > 0 (#…
Browse files Browse the repository at this point in the history
…157)

Co-authored-by: cosinlink <cosinlink>
  • Loading branch information
cosinlink authored Mar 31, 2022
1 parent bb37b5d commit ca862ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/msg/msg-issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (msg TokenIssueMsg) ValidateBasic() error {
return fmt.Errorf("Token name should have 1~%d characters", maxTokenNameLength)
}

if msg.TotalSupply <= 0 || msg.TotalSupply > MaxTotalSupply {
if msg.TotalSupply < 0 || msg.TotalSupply > MaxTotalSupply {
return fmt.Errorf("Total supply should be <= " + string(MaxTotalSupply/int64(math.Pow10(int(Decimals)))))
}

Expand Down

0 comments on commit ca862ea

Please sign in to comment.