Remove and 0xff
This commit is contained in:
parent
c3f73860a4
commit
3b82c9bd44
|
@ -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 =
|
||||||
|
|
Loading…
Reference in New Issue