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

Commit 31eae7f

Browse files
committed
missing bytes prefix on string
1 parent c7df6bf commit 31eae7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/tests/test_abi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def test_abi_encode_single_int():
3434

3535
def test_abi_encode_single_ureal():
3636
assert abi.encode_single(['ureal', '128x128', []], 0) == (b'\x00'*32)
37-
assert abi.encode_single(['ureal', '128x128', []], 1.125) == (b'\x00'*15 + b'\x01\x20' + '\x00'*15)
37+
assert abi.encode_single(['ureal', '128x128', []], 1.125) == (b'\x00'*15 + b'\x01\x20' + b'\x00'*15)
3838
assert abi.encode_single(['ureal', '128x128', []], 2**127-1) == (b'\x7f' + b'\xff'*15 + b'\x00'*16)
3939

4040
def test_abi_encode_single_real():

0 commit comments

Comments
 (0)