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)) 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,
) )