Fix app-accounts Restore feature (#761)

This commit is contained in:
Mokhtar Naamani 2019-02-27 09:33:02 +02:00 committed by Jaco Greeff
parent bb206677a7
commit 29f76b1636

View File

@ -98,7 +98,8 @@ class Restore extends React.PureComponent<Props, State> {
const isFileValid = keyring.decodeAddress(json.address).length === 32 &&
isHex(json.encoded) &&
isObject(json.meta) &&
json.encoding.content === 'pkcs8';
json.encoding.content[0] === 'pkcs8' &&
json.encoding.content[1] === 'ed25519';
this.setState({
isFileValid,