Skip to content

Commit

Permalink
fix: boot
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 committed Nov 22, 2024
1 parent 3fc9572 commit bffa895
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/ui/views/NewUserImport/ImportKeystone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ export const NewUserImportKeystone = () => {

await TransportWebUSB.requestPermission();

await wallet.boot(store.password);

await wallet.requestKeyring(KEYSTONE_TYPE, 'forgetDevice', null);

const stashKeyringId = await wallet.initQRHardware(
Expand All @@ -170,6 +168,7 @@ export const NewUserImportKeystone = () => {
HDPathType.BIP44
);

await wallet.boot(store.password);
await wallet.unlockHardwareAccount(KEYSTONE_TYPE, [0], stashKeyringId);

history.push({
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/NewUserImport/ImportLedger.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const NewUserImportLedger = () => {
throw new Error('empty password');
}

await wallet.boot(store.password);
const parent = window.opener;
const transport = await TransportWebHID.create();
await transport.close();
Expand All @@ -53,6 +52,7 @@ export const NewUserImportLedger = () => {
keyringId,
LedgerHDPathType.LedgerLive
);
await wallet.boot(store.password);
await wallet.unlockHardwareAccount(
HARDWARE_KEYRING_TYPES.Ledger.type,
[0],
Expand Down

0 comments on commit bffa895

Please sign in to comment.