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

Commit 4d68dc5

Browse files
committed
py3 compat: properly encode json string in test
1 parent 90168f1 commit 4d68dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/tests/test_tester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_abicontract_interface():
2121
simple_address = tester_state.evm(simple_compiled['Simple']['bin'])
2222

2323
# ABIContract class must accept json_abi
24-
abi_json = json.dumps(simple_compiled['Simple']['abi'])
24+
abi_json = json.dumps(simple_compiled['Simple']['abi']).encode('utf-8')
2525

2626
abi = ABIContract(
2727
_state=tester_state,

0 commit comments

Comments
 (0)