From a384936d5c65c425a284333eb9babce38e61d604 Mon Sep 17 00:00:00 2001 From: Emre Kanatli Date: Wed, 20 Oct 2021 22:14:10 -0400 Subject: [PATCH] add account index to wallet instance --- src/Wallet/MnemonicWallet.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Wallet/MnemonicWallet.ts b/src/Wallet/MnemonicWallet.ts index a147ef43..e7bb4094 100644 --- a/src/Wallet/MnemonicWallet.ts +++ b/src/Wallet/MnemonicWallet.ts @@ -25,6 +25,7 @@ export default class MnemonicWallet extends HDWalletAbstract implements UnsafeWa evmWallet: EvmWallet; type: WalletNameType; mnemonic: string; + accountIndex: number; private ethAccountKey: HDKey; @@ -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; }