Skip to content

Commit

Permalink
Print transaction receipt in assert_transaction_success_with_explanat…
Browse files Browse the repository at this point in the history
…ion() so we can figure out out of gas bugs
  • Loading branch information
miohtama committed Dec 6, 2024
1 parent 8adff29 commit 3371cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth_defi/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def assert_transaction_success_with_explanation(
trace_data = trace_evm_transaction(web3, tx_hash, TraceMethod.parity)
trace_output = print_symbolic_trace(get_or_create_contract_registry(web3), trace_data)
raise RaisedException(
f"Revert reason: {revert_reason}\nSolidity stack trace:\n{trace_output}\nTransaction details:\n{tx_details}",
f"Revert reason: {revert_reason}\nSolidity stack trace:\n{trace_output}\nTransaction details:\n{tx_details}\nTransaction receipt:{receipt}",
revert_reason=revert_reason,
solidity_stack_trace=trace_output,
)
Expand Down

0 comments on commit 3371cec

Please sign in to comment.