commit a194c96a77c5964a20638140b5fa8d436772c202
parent 5dd9db32b1cb700b2ffcb2ea4b54c34f70ed0f8a
Author: nolash <dev@holbrook.no>
Date: Fri, 25 Jun 2021 14:53:33 +0200
Correct v transformation in transaction apply sig
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto_dev_signer/eth/transaction.py b/crypto_dev_signer/eth/transaction.py
@@ -152,7 +152,7 @@ class EIP155Transaction:
if len(signature) < 65:
raise ValueError('invalid signature length')
if v == None:
- v = signature[64]
+ v = chain_id_to_v(chain_id, signature)
self.v = int_to_minbytes(v)
self.r = signature[:32]
self.s = signature[32:64]