core/types: add accessList to WithSeal and WithBody (#34651)

Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
cui 2026-04-07 22:04:07 +08:00 committed by GitHub
parent 52b8c09fdf
commit 0bafb29490
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -505,6 +505,7 @@ func (b *Block) WithSeal(header *Header) *Block {
transactions: b.transactions,
uncles: b.uncles,
withdrawals: b.withdrawals,
accessList: b.accessList,
}
}
@ -516,6 +517,7 @@ func (b *Block) WithBody(body Body) *Block {
transactions: slices.Clone(body.Transactions),
uncles: make([]*Header, len(body.Uncles)),
withdrawals: slices.Clone(body.Withdrawals),
accessList: b.accessList,
}
for i := range body.Uncles {
block.uncles[i] = CopyHeader(body.Uncles[i])