Skip to content

Commit

Permalink
remove patch for eth_now() bug
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Sep 8, 2023
1 parent 7d8a5ed commit 1ae1783
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions boa/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,14 +291,7 @@ def get_gas_price(self):

def _init_vm(self, reset_traces=True):
self.vm = self.chain.get_vm()

self.vm.patch = VMPatcher(self.vm)
import datetime

# patch until upstream PR #2119 is merged
self.vm.patch.timestamp = int(
datetime.datetime.now(datetime.timezone.utc).timestamp()
)

env = self

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies = [
"vyper >= 0.3.8",
"eth-stdlib",
"eth-abi",
"py-evm>=0.7.0a2",
"py-evm>=0.7.0a4",
"eth-typing",
"hypothesis",
"pytest",
Expand Down

0 comments on commit 1ae1783

Please sign in to comment.