mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
core/state: lint nits
This commit is contained in:
parent
37b712eae6
commit
884c23afb8
2 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -637,7 +637,6 @@ func (test *snapshotTest) checkEqual(state, checkstate *StateDB) error {
|
|||
print(obj.dirtyStorage),
|
||||
print(other.dirtyStorage))
|
||||
}
|
||||
|
||||
}
|
||||
// Check transient storage.
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue