give enough balance to operations test validator based on TokensFromConsensusPower to consider PowerReduction

This commit is contained in:
antstalepresh 2020-11-11 01:28:39 +10:00
parent cc96ee3a3b
commit 705e26e98c

View File

@ -308,7 +308,7 @@ func getTestingValidator(t *testing.T, app *simapp.SimApp, ctx sdk.Context, acco
require.NoError(t, err)
validator.DelegatorShares = sdk.NewDec(100)
validator.Tokens = sdk.NewInt(1000000)
validator.Tokens = sdk.TokensFromConsensusPower(100)
app.StakingKeeper.SetValidator(ctx, validator)