mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
Update abstract-wallet.ts
This commit is contained in:
parent
d7e8373347
commit
bbde3b6b59
@ -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…
Reference in New Issue
Block a user