Skip to content

Commit

Permalink
Remove unnecessary .keys() on dictionary key check
Browse files Browse the repository at this point in the history
  • Loading branch information
carver committed Mar 16, 2021
1 parent a372015 commit 860a87d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/vm/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def is_address_warm(self, address: Address) -> bool:
"""
return (
self._account_db.is_address_warm(address)
or address in self.computation_class.get_precompiles().keys()
or address in self.computation_class.get_precompiles()
)

def mark_address_warm(self, address: Address) -> None:
Expand Down

0 comments on commit 860a87d

Please sign in to comment.