Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for returndatasize #1612

Merged
merged 15 commits into from
Mar 5, 2020
Prev Previous commit
Next Next commit
Update evm.py
lint
  • Loading branch information
feliam authored Feb 19, 2020
commit 6e79b3149b83e56928ab19954fec0fc7ae0dfc58
4 changes: 2 additions & 2 deletions manticore/platforms/evm.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def extend_with_zeroes(b):
self._on_transaction = False # for @transact
self._checkpoint_data = None
self._published_pre_instruction_events = False
self._return_data = b''
self._return_data = b""

# Used calldata size
self._used_calldata_size = 0
Expand Down Expand Up @@ -2391,7 +2391,7 @@ def _open_transaction(self, sort, address, price, bytecode_or_data, caller, valu
# If not a human tx, reset returndata
# https://github.com/ethereum/EIPs/blob/master/EIPS/eip-211.md
if self.current_vm:
self.current_vm._return_data = b''
self.current_vm._return_data = b""

tx = Transaction(
sort, address, price, bytecode_or_data, caller, value, depth=self.depth, gas=gas
Expand Down