We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fb91f3 commit 078a5ecCopy full SHA for 078a5ec
core/state/access_list.go
@@ -61,9 +61,10 @@ func newAccessList() *accessList {
61
62
// Copy creates an independent copy of an accessList.
63
func (al *accessList) Copy() *accessList {
64
- cp := newAccessList()
65
- cp.addresses = maps.Clone(al.addresses)
66
- cp.slots = make([]map[common.Hash]struct{}, len(al.slots))
+ cp := &accessList{
+ addresses: maps.Clone(al.addresses),
+ slots: make([]map[common.Hash]struct{}, len(al.slots)),
67
+ }
68
for i, slotMap := range al.slots {
69
cp.slots[i] = maps.Clone(slotMap)
70
}
0 commit comments