From 77df371cd180ded7a1cde3899d5eaa74f4a8cc1d Mon Sep 17 00:00:00 2001 From: coffeepots Date: Fri, 31 Aug 2018 15:15:31 +0100 Subject: [PATCH] Update toSignature to use range instead of UInt256 --- nimbus/transaction.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimbus/transaction.nim b/nimbus/transaction.nim index 879a8e50b..d17398a84 100644 --- a/nimbus/transaction.nim +++ b/nimbus/transaction.nim @@ -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 =