Skip to content

Commit

Permalink
add account index to wallet instance
Browse files Browse the repository at this point in the history
  • Loading branch information
kanatliemre committed Oct 21, 2021
1 parent c2a9d91 commit a384936
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Wallet/MnemonicWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default class MnemonicWallet extends HDWalletAbstract implements UnsafeWa
evmWallet: EvmWallet;
type: WalletNameType;
mnemonic: string;
accountIndex: number;

private ethAccountKey: HDKey;

Expand All @@ -45,6 +46,7 @@ export default class MnemonicWallet extends HDWalletAbstract implements UnsafeWa
let ethKey = ethAccountKey.privateKey;
let evmWallet = new EvmWallet(ethKey);

this.accountIndex = account;
this.mnemonic = mnemonic;
this.evmWallet = evmWallet;
}
Expand Down

0 comments on commit a384936

Please sign in to comment.