Skip to content

Commit 212ca58

Browse files
committed
Merge branch 'dev-fixinstrospection1' of github.com:feliam/pyevmasm into dev-fixinstrospection1
2 parents 81fd86e + 0c4eb53 commit 212ca58

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', 'RETURNDATACOPY', 'CALL', 'STATICCALL', 'DELEGATECALL', 'CALLCODE')
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', 'STATICCALL', 'DELEGATECALL', 'CALLCODE', 'RETURN', '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)