Skip to content

Commit

Permalink
feat: use legacy-style gas if network does not support eip1559
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Jan 30, 2024
1 parent 7ef523a commit f3c0dd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion brownie/network/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,12 @@ def _make_transaction(
priority_fee = CONFIG.active_network["settings"]["priority_fee"] or None

if priority_fee == "auto":
priority_fee = Chain().priority_fee
try:
priority_fee = Chain().priority_fee
except ValueError:
# fallback to legacy transactions if network does not support EIP1559
CONFIG.active_network["settings"]["priority_fee"] = None
priority_fee = None

try:
# if max fee and priority fee are not set, use gas price
Expand Down

0 comments on commit f3c0dd9

Please sign in to comment.