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 85587d5 commit 3aa874bCopy full SHA for 3aa874b
core/state/access_list.go
@@ -60,11 +60,11 @@ func newAccessList() *accessList {
60
}
61
62
// Copy creates an independent copy of an accessList.
63
-func (a *accessList) Copy() *accessList {
+func (al *accessList) Copy() *accessList {
64
cp := newAccessList()
65
- cp.addresses = maps.Clone(a.addresses)
66
- cp.slots = make([]map[common.Hash]struct{}, len(a.slots))
67
- for i, slotMap := range a.slots {
+ cp.addresses = maps.Clone(al.addresses)
+ cp.slots = make([]map[common.Hash]struct{}, len(al.slots))
+ for i, slotMap := range al.slots {
68
cp.slots[i] = maps.Clone(slotMap)
69
70
return cp
0 commit comments