Skip to content

Commit

Permalink
fix: use None instead of empty tuple
Browse files Browse the repository at this point in the history
Co-authored-by: antazoey <jules@apeworx.io>
  • Loading branch information
fubuloubu and antazoey authored Mar 11, 2024
1 parent 784a300 commit d842708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ape_ethereum/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def estimate_gas_cost(self, txn: TransactionAPI, block_id: Optional[BlockID] = N
except Exception:
call_trace = None

traces = tuple()
traces = None
tb = None
if call_trace and txn_params.get("to"):
traces = (self._create_trace_frame(t) for t in call_trace[1])
Expand Down

0 comments on commit d842708

Please sign in to comment.