https://github.com/nim-lang/Nim/issues/23354
This commit is contained in:
Jacek Sieka 2024-06-10 10:12:32 +02:00 committed by GitHub
parent 5599435901
commit c9b545b6c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 5 deletions

View File

@ -341,10 +341,11 @@ func hash*(a: EthAddress): Hash {.inline.} =
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(
header: move(header),
transactions: move(body.transactions),
uncles: move(body.uncles),
withdrawals: move(body.withdrawals),
header: header,
transactions: body.transactions,
uncles: body.uncles,
withdrawals: body.withdrawals,
)