mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-22 23:08:07 +01:00
Update abstract-wallet.ts
This commit is contained in:
parent
d7e8373347
commit
bbde3b6b59
1 changed files with 3 additions and 1 deletions
|
@ -261,7 +261,9 @@ export class AbstractWallet {
|
|||
this.secret = parsedSecret.ExtPubKey;
|
||||
const mfp = Buffer.from(parsedSecret.MasterFingerprint, 'hex').reverse().toString('hex');
|
||||
this.masterFingerprint = parseInt(mfp, 16);
|
||||
this._derivationPath = parsedSecret.AccountKeyPath.startsWith('m/') ? parsedSecret.AccountKeyPath : `m/${parsedSecret.AccountKeyPath}`;
|
||||
this._derivationPath = parsedSecret.AccountKeyPath.startsWith('m/')
|
||||
? parsedSecret.AccountKeyPath
|
||||
: `m/${parsedSecret.AccountKeyPath}`;
|
||||
if (parsedSecret.CoboVaultFirmwareVersion) this.use_with_hardware_wallet = true;
|
||||
}
|
||||
} catch (_) {}
|
||||
|
|
Loading…
Add table
Reference in a new issue