core/state: rename all the AccessList receivers to 'al' (#29921)

rename all the receivers to 'al'
pull/29970/head
maskpp 3 months ago committed by GitHub
parent 85587d5ef2
commit 3aa874bed2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      core/state/access_list.go

@ -60,11 +60,11 @@ func newAccessList() *accessList {
}
// Copy creates an independent copy of an accessList.
func (a *accessList) Copy() *accessList {
func (al *accessList) Copy() *accessList {
cp := newAccessList()
cp.addresses = maps.Clone(a.addresses)
cp.slots = make([]map[common.Hash]struct{}, len(a.slots))
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 {
cp.slots[i] = maps.Clone(slotMap)
}
return cp

Loading…
Cancel
Save