Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamer committed Mar 10, 2022
1 parent 817cb6c commit 315e0aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/token/simulation/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ func SimulateBurnToken(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKee
if !amount.IsPositive() {
return simtypes.NoOpMsg(types.ModuleName, types.TypeMsgBurnToken, "Insufficient funds"), nil, nil
}
amount2 := r.Intn(int(amount.Int64()))
amount2 := r.Int63n(amount.Int64())
spendable, hasNeg := spendable.SafeSub(sdk.Coins{sdk.NewCoin(token.GetSymbol(), sdk.NewInt(int64(amount2)))})
if hasNeg {
return simtypes.NoOpMsg(types.ModuleName, types.TypeMsgBurnToken, "Insufficient funds"), nil, nil
Expand Down

0 comments on commit 315e0aa

Please sign in to comment.