carbon-js-sdk 0.4.16-beta.2 → 0.4.16-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -506,7 +506,7 @@ class MetaMask {
|
|
|
506
506
|
}
|
|
507
507
|
}));
|
|
508
508
|
const results = yield Promise.all(chainMnemonicSearch);
|
|
509
|
-
return results.find(result =>
|
|
509
|
+
return results.find(result => result);
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
512
|
getMnemonicInfo(connectedBlockchain) {
|
|
@@ -514,17 +514,18 @@ class MetaMask {
|
|
|
514
514
|
const defaultAccount = yield this.defaultAccount();
|
|
515
515
|
let result;
|
|
516
516
|
if (connectedBlockchain !== 'Carbon' && connectedBlockchain) {
|
|
517
|
-
yield this.getStoredMnemonicCipher(defaultAccount, connectedBlockchain).then(
|
|
518
|
-
if (
|
|
517
|
+
yield this.getStoredMnemonicCipher(defaultAccount, connectedBlockchain).then(mnemonicCipher => {
|
|
518
|
+
if (mnemonicCipher) {
|
|
519
519
|
result = {
|
|
520
520
|
chain: connectedBlockchain,
|
|
521
|
-
|
|
521
|
+
mnemonicCipher
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
524
|
}).catch(err => {
|
|
525
525
|
console.error('Unable to retrieve stored mnemonic cipher from ', connectedBlockchain);
|
|
526
526
|
console.error(err);
|
|
527
|
-
|
|
527
|
+
return result;
|
|
528
|
+
});
|
|
528
529
|
}
|
|
529
530
|
return result;
|
|
530
531
|
});
|