Update toSignature to use range instead of UInt256
This commit is contained in:
parent
055b169e86
commit
77df371cd1
|
@ -45,7 +45,7 @@ proc toSignature*(transaction: Transaction): Signature =
|
|||
bytes[0..31] = transaction.R.toByteArrayBE()
|
||||
bytes[32..63] = transaction.S.toByteArrayBE()
|
||||
# TODO: V will become a byte or range soon.
|
||||
bytes[64] = cast[uint64](transaction.V.data.lo).uint8
|
||||
bytes[64] = transaction.V
|
||||
initSignature(bytes)
|
||||
|
||||
proc getSender*(transaction: Transaction, output: var EthAddress): bool =
|
||||
|
|
Loading…
Reference in New Issue