mirror of
https://github.com/arnaucube/go-ethereum.git
synced 2026-02-28 14:06:45 +01:00
Fixed key import for empty entries
This commit is contained in:
@@ -74,8 +74,12 @@ func NewKeyRingFromString(content string) (*KeyRing, error) {
|
||||
} else if len(words) != 1 {
|
||||
return nil, fmt.Errorf("Unrecognised key format")
|
||||
}
|
||||
secrets = append(secrets, ethutil.Hex2Bytes(secret))
|
||||
|
||||
if len(secret) != 0 {
|
||||
secrets = append(secrets, ethutil.Hex2Bytes(secret))
|
||||
}
|
||||
}
|
||||
|
||||
return NewKeyRingFromSecrets(secrets)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user