Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

feat: support sending EIP1559 transactions depending on the target chain #652

Merged
merged 1 commit into from
Dec 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions evm/evm_transaction_opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading