Update toSignature to use range instead of UInt256

This commit is contained in:
coffeepots 2018-08-31 15:15:31 +01:00 committed by zah
parent 055b169e86
commit 77df371cd1
1 changed files with 1 additions and 1 deletions

View File

@ -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 =