Skip to content

Commit

Permalink
Merge PR #2205: minor develop fix
Browse files Browse the repository at this point in the history
* minor corrections

* ...

* ...
  • Loading branch information
rigelrozanski authored Sep 1, 2018
1 parent 1204857 commit b296209
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions x/slashing/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ func TestJailedValidatorDelegations(t *testing.T) {

// create a validator
amount := int64(10)
valAddr, valPubKey, bondAmount := sdk.ValAddress(addrs[0]), pks[0], sdk.NewInt(amount)
valPubKey, bondAmount := pks[0], sdk.NewInt(amount)
valAddr, consAddr := sdk.ValAddress(addrs[1]), sdk.ConsAddress(addrs[0])

msgCreateVal := newTestMsgCreateValidator(valAddr, valPubKey, bondAmount)
got := stake.NewHandler(stakeKeeper)(ctx, msgCreateVal)
require.True(t, got.IsOK(), "expected create validator msg to be ok, got: %v", got)
Expand All @@ -50,10 +52,10 @@ func TestJailedValidatorDelegations(t *testing.T) {
JailedUntil: time.Unix(0, 0),
SignedBlocksCounter: int64(0),
}
slashingKeeper.setValidatorSigningInfo(ctx, valAddr, newInfo)
slashingKeeper.setValidatorSigningInfo(ctx, consAddr, newInfo)

// delegate tokens to the validator
delAddr := addrs[1]
delAddr := sdk.AccAddress(addrs[2])
msgDelegate := newTestMsgDelegate(delAddr, valAddr, bondAmount)
got = stake.NewHandler(stakeKeeper)(ctx, msgDelegate)
require.True(t, got.IsOK(), "expected delegation to be ok, got %v", got)
Expand Down

0 comments on commit b296209

Please sign in to comment.