Skip to content

Commit

Permalink
network: transaction: request memory content in traces
Browse files Browse the repository at this point in the history
geth will not return memory content unless enableMemory is set to true,
which will cause _get_memory to fail.
  • Loading branch information
Ivan Stanković committed Jul 27, 2022
1 parent b2da967 commit ee3fda4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brownie/network/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ def _get_trace(self) -> None:
raise RPCRequestError("Node client does not support `debug_traceTransaction`")
try:
trace = web3.provider.make_request( # type: ignore
"debug_traceTransaction", (self.txid, {"disableStorage": CONFIG.mode != "console"})
"debug_traceTransaction", (self.txid, {"enableMemory": True, "disableStorage": CONFIG.mode != "console"})
)
except (requests.exceptions.Timeout, requests.exceptions.ConnectionError) as e:
msg = f"Encountered a {type(e).__name__} while requesting "
Expand Down

0 comments on commit ee3fda4

Please sign in to comment.