Skip to content

Commit

Permalink
chg: increase test balances to pay for the DefaultMaxFee in heimdall …
Browse files Browse the repository at this point in the history
…/ re-enable TestAccountRetriever test
  • Loading branch information
marcello33 committed Feb 15, 2024
1 parent 12da55e commit 9486518
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
17 changes: 9 additions & 8 deletions testutil/network/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,15 @@ func DefaultConfig(factory TestFixtureFactory) Config {
NumValidators: 4,
BondDenom: sdk.DefaultBondDenom,
MinGasPrices: fmt.Sprintf("0.000006%s", sdk.DefaultBondDenom),
AccountTokens: sdk.TokensFromConsensusPower(1000, sdk.DefaultPowerReduction),
StakingTokens: sdk.TokensFromConsensusPower(500, sdk.DefaultPowerReduction),
BondedTokens: sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction),
PruningStrategy: pruningtypes.PruningOptionNothing,
CleanupDir: true,
SigningAlgo: string(hd.Secp256k1Type),
KeyringOptions: []keyring.Option{},
PrintMnemonic: false,
// HV2: increasing tokens for tests to be able to pay the `DefaultTxFees` defined in heimdall
AccountTokens: sdk.TokensFromConsensusPower(1000000000000000000, sdk.DefaultPowerReduction),
StakingTokens: sdk.TokensFromConsensusPower(500000000000000000, sdk.DefaultPowerReduction),
BondedTokens: sdk.TokensFromConsensusPower(100000000, sdk.DefaultPowerReduction),
PruningStrategy: pruningtypes.PruningOptionNothing,
CleanupDir: true,
SigningAlgo: string(hd.Secp256k1Type),
KeyringOptions: []keyring.Option{},
PrintMnemonic: false,
}
}

Expand Down
2 changes: 1 addition & 1 deletion types/staking.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ValidatorUpdateDelay int64 = 1
var (
// DefaultBondDenom is the default bondable coin denomination (defaults to stake)
// Overwriting this value has the side effect of changing the default denomination in genesis
DefaultBondDenom = "stake"
DefaultBondDenom = "matic"

// DefaultPowerReduction is the default amount of staking tokens required for 1 unit of consensus-engine power
DefaultPowerReduction = sdkmath.NewIntFromUint64(1000000)
Expand Down
1 change: 0 additions & 1 deletion x/auth/types/account_retriever_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
)

func TestAccountRetriever(t *testing.T) {
t.Skip("skipping test as not relevant to Heimdall (no depinject)") // TODO HV2: fix this test
cfg, err := network.DefaultConfigWithAppConfig(testutil.AppConfig)
require.NoError(t, err)
cfg.NumValidators = 1
Expand Down

0 comments on commit 9486518

Please sign in to comment.