Correct v transformation in transaction apply sig

This commit is contained in:
nolash 2021-06-25 14:53:33 +02:00
parent 5dd9db32b1
commit a194c96a77
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -152,7 +152,7 @@ class EIP155Transaction:
if len(signature) < 65: if len(signature) < 65:
raise ValueError('invalid signature length') raise ValueError('invalid signature length')
if v == None: if v == None:
v = signature[64] v = chain_id_to_v(chain_id, signature)
self.v = int_to_minbytes(v) self.v = int_to_minbytes(v)
self.r = signature[:32] self.r = signature[:32]
self.s = signature[32:64] self.s = signature[32:64]