Skip to content

Commit 0bafb29

Browse files
cuiweixiefjl
andauthored
core/types: add accessList to WithSeal and WithBody (#34651)
Co-authored-by: Felix Lange <fjl@twurst.com>
1 parent 52b8c09 commit 0bafb29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/types/block.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ func (b *Block) WithSeal(header *Header) *Block {
505505
transactions: b.transactions,
506506
uncles: b.uncles,
507507
withdrawals: b.withdrawals,
508+
accessList: b.accessList,
508509
}
509510
}
510511

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

0 commit comments

Comments
 (0)