core/state: lint nits

This commit is contained in:
Martin Holst Swende 2024-04-25 08:15:23 +02:00
parent 37b712eae6
commit 884c23afb8
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0
2 changed files with 2 additions and 3 deletions

View file

@ -149,7 +149,7 @@ func (al *accessList) Equal(other *accessList) bool {
func (al *accessList) PrettyPrint() string {
out := new(strings.Builder)
var sortedAddrs []common.Address
for addr, _ := range al.addresses {
for addr := range al.addresses {
sortedAddrs = append(sortedAddrs, addr)
}
slices.SortFunc(sortedAddrs, common.Address.Cmp)
@ -158,7 +158,7 @@ func (al *accessList) PrettyPrint() string {
fmt.Fprintf(out, "%#x : (idx %d)\n", addr, idx)
if idx >= 0 {
slotmap := al.slots[idx]
for h, _ := range slotmap {
for h := range slotmap {
fmt.Fprintf(out, " %#x\n", h)
}
}

View file

@ -637,7 +637,6 @@ func (test *snapshotTest) checkEqual(state, checkstate *StateDB) error {
print(obj.dirtyStorage),
print(other.dirtyStorage))
}
}
// Check transient storage.
{