提交 6151ae7d 编写于 作者: O obscuren

Fixed key import for empty entries

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册