Skip to content

Commit

Permalink
Pyevm upgrade (#162)
Browse files Browse the repository at this point in the history
* Upgrade to py-evm v0.2.0-alpha.43
  • Loading branch information
fubuloubu authored and carver committed Jun 6, 2019
1 parent cf92245 commit 4e199f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions eth_tester/backends/pyevm/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,15 +387,15 @@ def get_transaction_receipt(self, transaction_hash):
#
def get_nonce(self, account, block_number="latest"):
vm = _get_vm_for_block_number(self.chain, block_number)
return vm.state.account_db.get_nonce(account)
return vm.state.get_nonce(account)

def get_balance(self, account, block_number="latest"):
vm = _get_vm_for_block_number(self.chain, block_number)
return vm.state.account_db.get_balance(account)
return vm.state.get_balance(account)

def get_code(self, account, block_number="latest"):
vm = _get_vm_for_block_number(self.chain, block_number)
return vm.state.account_db.get_code(account)
return vm.state.get_code(account)

#
# Transactions
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
'py-evm': [
# Pin py-evm to exact version, until it leaves alpha.
# EVM is very high velocity and might change API at each alpha.
"py-evm==0.2.0a42",
"py-evm==0.2.0a43",
"eth-hash[pysha3]>=0.1.4,<1.0.0;implementation_name=='cpython'",
"eth-hash[pycryptodome]>=0.1.4,<1.0.0;implementation_name=='pypy'",
],
Expand Down

0 comments on commit 4e199f6

Please sign in to comment.