Skip to content

Commit

Permalink
Add shortcut state property to env
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchiavini committed Aug 13, 2024
1 parent 673d5e4 commit 75cd5a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boa/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ def _hook_trace_computation(self, computation, contract=None):
def state(self):
return self.evm.state

@property
def state(self):
return self.evm.state

def get_code(self, address: _AddressType) -> bytes:
return self.evm.get_code(Address(address))

Expand Down

0 comments on commit 75cd5a1

Please sign in to comment.