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 9287ad4 commit b8feb5cCopy full SHA for b8feb5c
core/state/access_list.go
@@ -58,9 +58,10 @@ func newAccessList() *accessList {
58
59
// Copy creates an independent copy of an accessList.
60
func (al *accessList) Copy() *accessList {
61
- cp := newAccessList()
62
- cp.addresses = maps.Clone(al.addresses)
63
- 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)),
64
+ }
65
for i, slotMap := range al.slots {
66
cp.slots[i] = maps.Clone(slotMap)
67
}
0 commit comments