diff --git a/x/stake/inflation_test.go b/x/stake/inflation_test.go index 8096119f4..7fa393edc 100644 --- a/x/stake/inflation_test.go +++ b/x/stake/inflation_test.go @@ -214,7 +214,7 @@ func TestLargeBond(t *testing.T) { // initialBondedRatio that we can use to compare to the new values after the unbond initialBondedRatio := pool.bondedRatio() - params := defaultParams() + params := DefaultParams() params.MaxValidators = bondedValidators + 1 //must do this to allow for an extra validator to bond keeper.setParams(ctx, params) @@ -245,7 +245,7 @@ func TestLargeBond(t *testing.T) { // Tests that inflation increases or decreases as expected when we do a random operation on 20 different validators func TestInflationWithRandomOperations(t *testing.T) { ctx, _, keeper := createTestInput(t, false, 0) - params := defaultParams() + params := DefaultParams() keeper.setParams(ctx, params) numValidators := 20 @@ -343,7 +343,7 @@ func updateProvisions(t *testing.T, keeper Keeper, pool Pool, ctx sdk.Context, h // Allows you to decide how many validators to setup // Allows you to pick which validators are bonded by adjusting the MaxValidators of params func setupTestValidators(pool Pool, keeper Keeper, ctx sdk.Context, validatorTokens []int64, maxValidators uint16) ([]Validator, Keeper, Pool) { - params := defaultParams() + params := DefaultParams() params.MaxValidators = maxValidators keeper.setParams(ctx, params) numValidators := len(validatorTokens) diff --git a/x/stake/test_common.go b/x/stake/test_common.go index 50d8dc37e..3cea0b281 100644 --- a/x/stake/test_common.go +++ b/x/stake/test_common.go @@ -150,7 +150,7 @@ func createTestAddrs(numAddrs int) []sdk.Address { buffer.WriteString(numString) //adding on final two digits to make addresses unique res, _ := sdk.GetAccAddressHex(buffer.String()) - bech, _ := sdk.Bech32CosmosifyAcc(res) + bech, _ := sdk.Bech32ifyAcc(res) addresses = append(addresses, testAddr(buffer.String(), bech)) buffer.Reset() }