Commit 7ae98a52 authored by Felipe Andrade's avatar Felipe Andrade

remove gas configs

parent 0cc439c8
...@@ -48,10 +48,7 @@ type WalletConfig struct { ...@@ -48,10 +48,7 @@ type WalletConfig struct {
PrivateKey string `toml:"private_key"` PrivateKey string `toml:"private_key"`
// transaction parameters // transaction parameters
TxValue big.Int `toml:"tx_value"` TxValue big.Int `toml:"tx_value"`
GasLimit uint64 `toml:"gas_limit"`
GasTipCap big.Int `toml:"gas_tip_cap"`
GasFeeCap big.Int `toml:"gas_fee_cap"`
} }
type ProviderConfig struct { type ProviderConfig struct {
...@@ -131,12 +128,6 @@ func (c *Config) Validate() error { ...@@ -131,12 +128,6 @@ func (c *Config) Validate() error {
if wallet.TxValue.BitLen() == 0 { if wallet.TxValue.BitLen() == 0 {
return errors.Errorf("wallet [%s] tx_value is missing", name) return errors.Errorf("wallet [%s] tx_value is missing", name)
} }
if wallet.GasLimit == 0 {
return errors.Errorf("wallet [%s] gas_limit is missing", name)
}
if wallet.GasFeeCap.BitLen() == 0 {
return errors.Errorf("wallet [%s] gas_fee_cap is missing", name)
}
} }
for name, provider := range c.Providers { for name, provider := range c.Providers {
...@@ -155,6 +146,9 @@ func (c *Config) Validate() error { ...@@ -155,6 +146,9 @@ func (c *Config) Validate() error {
if provider.SendTransactionRetryTimeout == 0 { if provider.SendTransactionRetryTimeout == 0 {
return errors.Errorf("provider [%s] send_transaction_retry_timeout is missing", name) return errors.Errorf("provider [%s] send_transaction_retry_timeout is missing", name)
} }
if provider.SendTransactionCoolDown == 0 {
return errors.Errorf("provider [%s] send_transaction_cool_down is missing", name)
}
if provider.ReceiptRetrievalInterval == 0 { if provider.ReceiptRetrievalInterval == 0 {
return errors.Errorf("provider [%s] receipt_retrieval_interval is missing", name) return errors.Errorf("provider [%s] receipt_retrieval_interval is missing", name)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment