Skip to content

Commit

Permalink
Merge pull request #266 from terra-money/fix/vesting-migrator-test
Browse files Browse the repository at this point in the history
fix: tests for vesting migrator
  • Loading branch information
emidev98 authored Sep 5, 2023
2 parents 7622e27 + 1e98a6e commit 4a0b529
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions x/auth/migrations/v2/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,9 @@ func createValidator(t *testing.T, ctx sdk.Context, bankKeeper bankkeeper.Keeper
require.NoError(t, stakingKeeper.SetValidatorByConsAddr(ctx, val1))
stakingKeeper.SetNewValidatorByPowerIndex(ctx, val1)

err = stakingKeeper.Hooks().AfterValidatorCreated(ctx, val1.GetOperator())
require.NoError(t, err)

_, err = stakingKeeper.Delegate(ctx, addrs[0], valTokens, stakingtypes.Unbonded, val1, true)
require.NoError(t, err)

Expand Down

0 comments on commit 4a0b529

Please sign in to comment.