fix: change SimulationState.InitialStake to sdkmath.Int (#11855)

* fix: change SimulationState.InitialStake to sdkmath.Int

* cl

* aleks' suggestion
This commit is contained in:
Facundo Medica
2022-05-03 00:57:44 +02:00
committed by GitHub
parent 348ff02276
commit 78618dbfa0
19 changed files with 42 additions and 23 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import (
"math/rand"
"time"
sdkmath "cosmossdk.io/math"
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/simulation"
@@ -103,7 +104,7 @@ type SimulationState struct {
Rand *rand.Rand // random number
GenState map[string]json.RawMessage // genesis state
Accounts []simulation.Account // simulation accounts
InitialStake int64 // initial coins per account
InitialStake sdkmath.Int // initial coins per account
NumBonded int64 // number of initially bonded accounts
GenTimestamp time.Time // genesis timestamp
UnbondTime time.Duration // staking unbond time stored to use it as the slashing maximum evidence duration