We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 224fdb8 commit 5153d7fCopy full SHA for 5153d7f
eth/tracers/api_test.go
@@ -17,7 +17,6 @@
17
package tracers
18
19
import (
20
- "bytes"
21
"context"
22
"crypto/ecdsa"
23
"encoding/json"
@@ -791,9 +790,7 @@ func newAccounts(n int) (accounts []Account) {
791
790
addr := crypto.PubkeyToAddress(key.PublicKey)
792
accounts = append(accounts, Account{key: key, addr: addr})
793
}
794
- slices.SortFunc(accounts, func(a, b Account) bool {
795
- return bytes.Compare(a.addr.Bytes(), b.addr.Bytes()) < 0
796
- })
+ slices.SortFunc(accounts, func(a, b Account) bool { return a.addr.Less(b.addr) })
797
return accounts
798
799
0 commit comments