Skip to content

Commit

Permalink
fix int64
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnya97 committed Nov 13, 2020
1 parent 5a95db6 commit 8bc429d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/staking/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func TestInvalidPubKeyTypeMsgCreateValidator(t *testing.T) {
}

func TestBothPubKeyTypesMsgCreateValidator(t *testing.T) {
app, ctx, _, valAddrs := bootstrapHandlerGenesisTest(t, 1000, 2, 1000)
app, ctx, _, valAddrs := bootstrapHandlerGenesisTest(t, 1000, 2, sdk.NewInt(1000))
ctx = ctx.WithConsensusParams(&abci.ConsensusParams{
Validator: &tmproto.ValidatorParams{PubKeyTypes: []string{tmtypes.ABCIPubKeyTypeEd25519, tmtypes.ABCIPubKeyTypeSecp256k1}},
})
Expand All @@ -210,7 +210,7 @@ func TestBothPubKeyTypesMsgCreateValidator(t *testing.T) {
}
for _, tc := range testCases {
t.Run(tc.name, func(*testing.T) {
tstaking.CreateValidator(tc.addr, tc.pk, 10, true)
tstaking.CreateValidator(tc.addr, tc.pk, sdk.NewInt(10), true)
})
}
}
Expand Down

0 comments on commit 8bc429d

Please sign in to comment.