Skip to content

Commit 812afee

Browse files
committed
Fix mem read/write introspection
1 parent d27daf1 commit 812afee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyevmasm/evmasm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,12 @@ def writes_to_stack(self):
270270
@property
271271
def writes_to_memory(self):
272272
""" True if the instruction writes to memory """
273-
return self.semantics in ('MSTORE', 'MSTORE8', 'CALLDATACOPY', 'CODECOPY', 'EXTCODECOPY')
273+
return self.semantics in ('MSTORE', 'MSTORE8', 'CALLDATACOPY', 'CODECOPY', 'EXTCODECOPY', 'RETURNDATACOPY', 'CALL', 'STATICCALL', 'DELEGATECALL', 'CALLCODE')
274274

275275
@property
276276
def reads_from_memory(self):
277277
""" True if the instruction reads from memory """
278-
return self.semantics in ('MLOAD', 'CREATE', 'CALL', 'CALLCODE', 'RETURN', 'DELEGATECALL', 'REVERT')
278+
return self.semantics in ('MLOAD', 'CREATE', 'CALL', 'STATICCALL', 'DELEGATECALL', 'CALLCODE', 'RETURN', 'REVERT')
279279

280280
@property
281281
def writes_to_storage(self):

0 commit comments

Comments
 (0)