Skip to content

Commit

Permalink
core/state: rename all the AccessList receivers to 'al' (#29921)
Browse files Browse the repository at this point in the history
rename all the receivers to 'al'
  • Loading branch information
mask-pp authored Jun 11, 2024
1 parent 85587d5 commit 3aa874b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/state/access_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3aa874b

Please sign in to comment.