core/state: rename all the AccessList receivers to 'al' (#29921)
rename all the receivers to 'al'
This commit is contained in:
parent
85587d5ef2
commit
3aa874bed2
|
@ -60,11 +60,11 @@ func newAccessList() *accessList {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy creates an independent copy of an accessList.
|
// Copy creates an independent copy of an accessList.
|
||||||
func (a *accessList) Copy() *accessList {
|
func (al *accessList) Copy() *accessList {
|
||||||
cp := newAccessList()
|
cp := newAccessList()
|
||||||
cp.addresses = maps.Clone(a.addresses)
|
cp.addresses = maps.Clone(al.addresses)
|
||||||
cp.slots = make([]map[common.Hash]struct{}, len(a.slots))
|
cp.slots = make([]map[common.Hash]struct{}, len(al.slots))
|
||||||
for i, slotMap := range a.slots {
|
for i, slotMap := range al.slots {
|
||||||
cp.slots[i] = maps.Clone(slotMap)
|
cp.slots[i] = maps.Clone(slotMap)
|
||||||
}
|
}
|
||||||
return cp
|
return cp
|
||||||
|
|
Loading…
Reference in New Issue