Skip to content

Commit

Permalink
fix: non eip-1559 transactions
Browse files Browse the repository at this point in the history
for some reason, the exception-throwing call to get_fee_info was not in
the try/except block.
  • Loading branch information
charles-cooper committed Oct 24, 2023
1 parent 7171aee commit 7fcca39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boa/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,9 @@ def _send_txn(self, from_, to=None, gas=None, value=None, data=None):
{"from": from_, "to": to, "gas": gas, "value": value, "data": data}
)

base_fee, max_priority_fee, max_fee, chain_id = self.get_fee_info()
try:
# eip-1559 txn
base_fee, max_priority_fee, max_fee, chain_id = self.get_fee_info()
tx_data["maxPriorityFeePerGas"] = max_priority_fee
tx_data["maxFeePerGas"] = max_fee
tx_data["chainId"] = chain_id
Expand Down

0 comments on commit 7fcca39

Please sign in to comment.