mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
Remove object destructuring for hdPaths, prefix and seed
This commit is contained in:
parent
cdaadd4ed0
commit
df01734ba2
@ -91,13 +91,10 @@ export class DirectSecp256k1HdWallet implements OfflineDirectSigner {
|
||||
private readonly accounts: readonly Secp256k1Derivation[];
|
||||
|
||||
protected constructor(mnemonic: EnglishMnemonic, options: DirectSecp256k1HdWalletConstructorOptions) {
|
||||
const { seed, hdPaths, prefix } = {
|
||||
seed: options.seed,
|
||||
prefix: options.prefix ?? defaultOptions.prefix,
|
||||
hdPaths: options.hdPaths ?? defaultOptions.hdPaths,
|
||||
};
|
||||
const prefix = options.prefix ?? defaultOptions.prefix;
|
||||
const hdPaths = options.hdPaths ?? defaultOptions.hdPaths;
|
||||
this.secret = mnemonic;
|
||||
this.seed = seed;
|
||||
this.seed = options.seed;
|
||||
this.accounts = hdPaths.map((hdPath) => ({
|
||||
hdPath: hdPath,
|
||||
prefix: prefix,
|
||||
|
Loading…
x
Reference in New Issue
Block a user