don't need to copy the while slice, it's ok to use the pointer directly

This commit is contained in:
q 2026-01-25 02:18:07 +08:00
parent 9a8e14e77e
commit 5ffb920b6d

View file

@ -1639,7 +1639,7 @@ func (as *accountSet) flatten() []common.Address {
// merge adds all addresses from the 'other' set into 'as'.
func (as *accountSet) merge(other *accountSet) {
maps.Copy(as.accounts, other.accounts)
as.accounts = other.accounts
as.cache = nil
}