From c7c9a5285089154377706672df148aebc339b2ba Mon Sep 17 00:00:00 2001 From: Felipe Andrade Date: Wed, 6 Sep 2023 15:14:41 -0700 Subject: [PATCH] remove gas configs --- op-ufm/op-ufm/pkg/config/config.go | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/op-ufm/op-ufm/pkg/config/config.go b/op-ufm/op-ufm/pkg/config/config.go index 3f0abda..e0c80d6 100644 --- a/op-ufm/op-ufm/pkg/config/config.go +++ b/op-ufm/op-ufm/pkg/config/config.go @@ -48,10 +48,7 @@ type WalletConfig struct { PrivateKey string `toml:"private_key"` // transaction parameters - 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"` + TxValue big.Int `toml:"tx_value"` } type ProviderConfig struct { @@ -131,12 +128,6 @@ func (c *Config) Validate() error { if wallet.TxValue.BitLen() == 0 { 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 { @@ -155,6 +146,9 @@ func (c *Config) Validate() error { if provider.SendTransactionRetryTimeout == 0 { 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 { return errors.Errorf("provider [%s] receipt_retrieval_interval is missing", name) }