Skip to content

Commit

Permalink
🐛 Fix Halt execution error on older Anvil
Browse files Browse the repository at this point in the history
  • Loading branch information
michprev committed Sep 30, 2024
1 parent 89445c5 commit 53b31d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wake/development/transactions.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def raw_error(self) -> Optional[Union[UnknownTransactionRevertedError, Halt]]:
self._fetch_trace_transaction()
assert self._trace_transaction is not None

if self._trace_transaction[0]["result"] is None:
if "result" not in self._trace_transaction[0] or self._trace_transaction[0]["result"] is None:
return Halt(self._trace_transaction[0]["error"])

# due to a bug, Anvil does not return revert data for failed contract creations
Expand Down

0 comments on commit 53b31d7

Please sign in to comment.