diff --git a/testutil/network/network.go b/testutil/network/network.go index 177e59e46..8bdda9a3d 100644 --- a/testutil/network/network.go +++ b/testutil/network/network.go @@ -116,16 +116,14 @@ func DefaultConfig() Config { TimeoutCommit: 2 * time.Second, ChainID: chainID, NumValidators: 4, - // BondDenom: "hua", - NativeDenom: "hua", - // MinGasPrices: fmt.Sprintf("0.000006%s", "exo"), - MinGasPrices: "10hua", - AccountTokens: sdk.TokensFromConsensusPower(1000, evmostypes.PowerReduction), - DepositedTokens: sdk.TokensFromConsensusPower(500, evmostypes.PowerReduction), - StakingTokens: sdk.TokensFromConsensusPower(200, evmostypes.PowerReduction), - PruningStrategy: pruningtypes.PruningOptionNothing, - CleanupDir: true, - SigningAlgo: string(hd.EthSecp256k1Type), + NativeDenom: "hua", + MinGasPrices: "10hua", + AccountTokens: sdk.TokensFromConsensusPower(1000, evmostypes.PowerReduction), + DepositedTokens: sdk.TokensFromConsensusPower(500, evmostypes.PowerReduction), + StakingTokens: sdk.TokensFromConsensusPower(200, evmostypes.PowerReduction), + PruningStrategy: pruningtypes.PruningOptionNothing, + CleanupDir: true, + SigningAlgo: string(hd.EthSecp256k1Type), // KeyringOptions: []keyring.Option{hd.EthSecp256k1Option()}, KeyringOptions: []keyring.Option{exocorecrypto.Ed25519Option()}, PrintMnemonic: false, @@ -258,7 +256,6 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) { appCfg := config.DefaultConfig() appCfg.MinGasPrices = cfg.MinGasPrices appCfg.Pruning = cfg.PruningStrategy - appCfg.MinGasPrices = cfg.MinGasPrices appCfg.API.Enable = true appCfg.API.Swagger = false appCfg.Telemetry.Enabled = false diff --git a/testutil/network/tx_precompile.go b/testutil/network/tx_precompile.go index d2de32e2b..6b4e4bd7b 100644 --- a/testutil/network/tx_precompile.go +++ b/testutil/network/tx_precompile.go @@ -132,13 +132,9 @@ func parseABI(abiPath string) (abi.ABI, error) { return abi.JSON(f) } -// PaddnigAddressTo32 pads the 20-length address to 32 bytes with 0s +// PaddingAddressTo32 pads the 20-length address to 32 bytes with 0s func PaddingAddressTo32(address common.Address) []byte { - paddingLen := 32 - len(address) - ret := make([]byte, len(address)) + ret := make([]byte, 32) copy(ret, address[:]) - for i := 0; i < paddingLen; i++ { - ret = append(ret, 0) - } return ret }