Handle registry not found errors (Fixes #4463) (#4465)

This commit is contained in:
Jaco Greeff 2017-02-07 19:42:21 +01:00 committed by GitHub
parent d341b49bad
commit 7bca4aa24f

View File

@ -198,6 +198,9 @@ export default class CreateWalletStore {
.get()
.registry
.lookupAddress(walletLibraryRegKey)
.catch(() => {
return null; // exception when registry is not available
})
.then((address) => {
const walletLibraryAddress = (address || '').replace(/^0x/, '').toLowerCase();
const code = walletLibraryAddress.length && !/^0+$/.test(walletLibraryAddress)