Remove and 0xff

This commit is contained in:
coffeepots 2018-08-24 17:03:44 +01:00
parent c3f73860a4
commit 3b82c9bd44
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[0..31] = transaction.R.toByteArrayBE()
bytes[32..63] = transaction.S.toByteArrayBE() bytes[32..63] = transaction.S.toByteArrayBE()
# TODO: V will become a byte or range soon. # TODO: V will become a byte or range soon.
bytes[64] = (cast[uint64](transaction.V.data.lo) and 0xff'u64).uint8 bytes[64] = cast[uint64](transaction.V.data.lo).uint8
initSignature(bytes) initSignature(bytes)
proc getSender*(transaction: Transaction, output: var EthAddress): bool = proc getSender*(transaction: Transaction, output: var EthAddress): bool =