Skip to content

Commit 7f71d7a

Browse files
committed
fix: index errot
1 parent a18c779 commit 7f71d7a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/keyring-eth-onekey/src/onekey-keyring.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export class OneKeyKeyring extends EventEmitter {
292292
}
293293
if (!this.accountDetails[address]) {
294294
this.accountDetails[address] = {
295-
index: from + i,
295+
index: i,
296296
hdPath,
297297
passphraseState: this.passphraseState,
298298
};
@@ -605,7 +605,7 @@ export class OneKeyKeyring extends EventEmitter {
605605
throw new Error('Unknown error');
606606
}
607607
accounts.push({
608-
index: from + i,
608+
index: i,
609609
address,
610610
balance: null,
611611
});

0 commit comments

Comments
 (0)