mirror of https://github.com/status-im/nim-eth.git
parent
5599435901
commit
c9b545b6c4
|
@ -341,10 +341,11 @@ func hash*(a: EthAddress): Hash {.inline.} =
|
||||||
|
|
||||||
cast[Hash](a0 xor a1 xor uint64(a2))
|
cast[Hash](a0 xor a1 xor uint64(a2))
|
||||||
|
|
||||||
func init*(T: type EthBlock, header: sink BlockHeader, body: sink BlockBody): T =
|
# TODO https://github.com/nim-lang/Nim/issues/23354 - parameters should be sink
|
||||||
|
func init*(T: type EthBlock, header: BlockHeader, body: BlockBody): T =
|
||||||
T(
|
T(
|
||||||
header: move(header),
|
header: header,
|
||||||
transactions: move(body.transactions),
|
transactions: body.transactions,
|
||||||
uncles: move(body.uncles),
|
uncles: body.uncles,
|
||||||
withdrawals: move(body.withdrawals),
|
withdrawals: body.withdrawals,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue