Skip to content

Commit

Permalink
fix: bug in coinswap module's param change simulation
Browse files Browse the repository at this point in the history
(cherry picked from commit ba5685f)
  • Loading branch information
poorphd authored and dongsam committed Aug 3, 2023
1 parent b9e47d5 commit 6626290
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/coinswap/simulation/params.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package simulation

import (
"fmt"
"math/rand"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -17,7 +18,7 @@ func ParamChanges(r *rand.Rand) []simtypes.ParamChange {
simulation.NewSimParamChange(
types.ModuleName, string(types.KeyFee),
func(r *rand.Rand) string {
return sdk.NewDecWithPrec(r.Int63n(3), 3).String() // 0.1%~0.3%
return fmt.Sprintf("\"%s\"", sdk.NewDecWithPrec(r.Int63n(3), 3)) // 0.1%~0.3%
},
),
}
Expand Down

0 comments on commit 6626290

Please sign in to comment.