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

This commit is contained in:
Jaco Greeff 2017-02-07 19:52:06 +01:00 committed by GitHub
parent 889f85ea0d
commit dd0b2c2327
1 changed files with 3 additions and 0 deletions

View File

@ -165,6 +165,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)