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

Commit 5d79905

Browse files
committed
Use bytes for strings
1 parent 0903a99 commit 5d79905

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ethereum/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ def int_to_32bytearray(i):
110110
def sha3(seed):
111111
sha3_count[0] += 1
112112
return sha3_256(to_string(seed))
113-
assert sha3('').encode('hex') == 'c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470'
113+
114+
assert encode_hex(sha3('')) == b'c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470'
114115

115116

116117
def privtoaddr(x, extended=False):

0 commit comments

Comments
 (0)