Skip to content

Commit f3c0dd9

Browse files
feat: use legacy-style gas if network does not support eip1559
1 parent 7ef523a commit f3c0dd9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

brownie/network/account.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,12 @@ def _make_transaction(
728728
priority_fee = CONFIG.active_network["settings"]["priority_fee"] or None
729729

730730
if priority_fee == "auto":
731-
priority_fee = Chain().priority_fee
731+
try:
732+
priority_fee = Chain().priority_fee
733+
except ValueError:
734+
# fallback to legacy transactions if network does not support EIP1559
735+
CONFIG.active_network["settings"]["priority_fee"] = None
736+
priority_fee = None
732737

733738
try:
734739
# if max fee and priority fee are not set, use gas price

0 commit comments

Comments
 (0)