mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 13:21:37 +00:00
Merge abfa0e60c4 into 7c9032dff6
This commit is contained in:
commit
2b03608eb3
1 changed files with 1 additions and 1 deletions
|
|
@ -335,7 +335,7 @@ func readAccounts(file string) (map[common.Address]*senderInfo, error) {
|
||||||
for addr, acc := range keys {
|
for addr, acc := range keys {
|
||||||
pk, err := crypto.HexToECDSA(common.Bytes2Hex(acc.Key))
|
pk, err := crypto.HexToECDSA(common.Bytes2Hex(acc.Key))
|
||||||
if err != nil {
|
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}
|
accounts[addr] = &senderInfo{Key: pk, Nonce: 0}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue