Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public clearCache() {
this._wallet = new Wallet();
this._walletArr = [];
this.$wallet = new Subject();
}
public parseWallet(src: any): Wallet {
if (!wallet) {
return null;
}
try {
const w = new Wallet(src);
if (!w.accounts.length) {
return null;
}
return w;
} catch (e) {
return null;
}
}
private generatePrivateKey(): string {