cmd/devp2p/internal/ethtest: fix swapped args in readAccounts error (#35247)

This commit is contained in:
cui 2026-07-02 04:06:16 +08:00 committed by GitHub
parent 7e625dd548
commit 59e89e81e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -335,7 +335,7 @@ func readAccounts(file string) (map[common.Address]*senderInfo, error) {
for addr, acc := range keys {
pk, err := crypto.HexToECDSA(common.Bytes2Hex(acc.Key))
if err != nil {
return nil, fmt.Errorf("unable to read private key for %s: %v", err, addr)
return nil, fmt.Errorf("unable to read private key for %s: %v", addr, err)
}
accounts[addr] = &senderInfo{Key: pk, Nonce: 0}
}