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

Commit 9193947

Browse files
committed
string and bytes compat
1 parent 67944c6 commit 9193947

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/transactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def sign(self, key):
126126
signature = pk.ecdsa_recoverable_serialize(
127127
pk.ecdsa_sign_recoverable(rawhash, raw=True)
128128
)
129-
signature = signature[0] + chr(signature[1])
129+
signature = signature[0] + chr(signature[1]).encode('utf8')
130130
self.v = ord(signature[64]) + 27
131131
self.r = big_endian_to_int(signature[0:32])
132132
self.s = big_endian_to_int(signature[32:64])

0 commit comments

Comments
 (0)