Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
fixed #808 which was being done in tx but not in calls
Browse files Browse the repository at this point in the history
  • Loading branch information
joeykrug committed Oct 15, 2017
1 parent 1ecf4ad commit 2b60d8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ __pycache__/
/dist/
/*.egg-info/
/.tox/
/build/
/bin/
/develop-eggs/
/eggs/
Expand Down
3 changes: 2 additions & 1 deletion ethereum/tools/tester.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ethereum.utils import sha3, privtoaddr, int_to_addr, to_string, big_endian_to_int, checksum_encode, int_to_big_endian, encode_hex
from ethereum.utils import sha3, privtoaddr, int_to_addr, to_string, big_endian_to_int, checksum_encode, int_to_big_endian, encode_hex, normalize_address
from ethereum.genesis_helpers import mk_basic_state
from ethereum.transactions import Transaction
from ethereum.consensus_strategy import get_consensus_strategy
Expand Down Expand Up @@ -197,6 +197,7 @@ def tx(self, sender=k0, to=b'\x00' * 20, value=0,
def call(self, sender=k0, to=b'\x00' * 20, value=0,
data=b'', startgas=STARTGAS, gasprice=GASPRICE):
self.head_state.commit()
to = utils.normalize_address(to)
sender_addr = privtoaddr(sender)
result = apply_message(
self.head_state.ephemeral_clone(),
Expand Down

0 comments on commit 2b60d8b

Please sign in to comment.