From 50236178e12ce1525e9302615d36f343f85fbf65 Mon Sep 17 00:00:00 2001 From: sweexordious Date: Thu, 7 Dec 2023 14:16:48 +0100 Subject: [PATCH] feat: support sending EIP1559 transactions depending on the target chain --- evm/evm_transaction_opts.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/evm/evm_transaction_opts.go b/evm/evm_transaction_opts.go index 556686f7..18b4e812 100644 --- a/evm/evm_transaction_opts.go +++ b/evm/evm_transaction_opts.go @@ -36,15 +36,9 @@ func newTransactOptsBuilder(ks *keystore.KeyStore, acc *accounts.Account) transa return nil, fmt.Errorf("failed to create Ethereum transactor: %w", err) } - bigGasPrice, err := client.SuggestGasPrice(ctx) - if err != nil { - return nil, fmt.Errorf("failed to get Ethereum gas estimate: %w", err) - } - auth.Nonce = new(big.Int).SetUint64(nonce) auth.Value = big.NewInt(0) // in wei auth.GasLimit = gasLim // in units - auth.GasPrice = bigGasPrice return auth, nil }