mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
more
This commit is contained in:
parent
0029554f8c
commit
c608c9be4c
1 changed files with 1 additions and 4 deletions
|
|
@ -77,10 +77,7 @@ func (t transientStorage) PrettyPrint() string {
|
||||||
for _, addr := range sortedAddrs {
|
for _, addr := range sortedAddrs {
|
||||||
fmt.Fprintf(out, "%#x:", addr)
|
fmt.Fprintf(out, "%#x:", addr)
|
||||||
storage := t[addr]
|
storage := t[addr]
|
||||||
sortedKeys := make([]common.Hash, 0, len(storage))
|
sortedKeys := slices.Collect(maps.Keys(storage))
|
||||||
for key := range storage {
|
|
||||||
sortedKeys = append(sortedKeys, key)
|
|
||||||
}
|
|
||||||
slices.SortFunc(sortedKeys, common.Hash.Cmp)
|
slices.SortFunc(sortedKeys, common.Hash.Cmp)
|
||||||
for _, key := range sortedKeys {
|
for _, key := range sortedKeys {
|
||||||
fmt.Fprintf(out, " %X : %X\n", key, storage[key])
|
fmt.Fprintf(out, " %X : %X\n", key, storage[key])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue