Commit 6151ae7d authored by obscuren's avatar obscuren

Fixed key import for empty entries

parent 38897850
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment