mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-05-31 12:11:04 +00:00
catch, ignore
This commit is contained in:
@@ -261,14 +261,18 @@ export class Keyring extends Base implements KeyringStruct {
|
|||||||
|
|
||||||
this._store.all((key: string, json: KeyringJson): void => {
|
this._store.all((key: string, json: KeyringJson): void => {
|
||||||
if (options.filter ? options.filter(json) : true) {
|
if (options.filter ? options.filter(json) : true) {
|
||||||
if (this.allowGenesis(json)) {
|
try {
|
||||||
if (accountRegex.test(key)) {
|
if (this.allowGenesis(json)) {
|
||||||
this.loadAccount(json, key);
|
if (accountRegex.test(key)) {
|
||||||
} else if (addressRegex.test(key)) {
|
this.loadAccount(json, key);
|
||||||
this.loadAddress(json, key);
|
} else if (addressRegex.test(key)) {
|
||||||
} else if (contractRegex.test(key)) {
|
this.loadAddress(json, key);
|
||||||
this.loadContract(json, key);
|
} else if (contractRegex.test(key)) {
|
||||||
|
this.loadContract(json, key);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} catch (error) {
|
||||||
|
// ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -278,7 +282,7 @@ export class Keyring extends Base implements KeyringStruct {
|
|||||||
try {
|
try {
|
||||||
this.loadInjected(account.address, account.meta);
|
this.loadInjected(account.address, account.meta);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.warn(`Failed loading ${account.address}`);
|
// ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user