@@ -56,7 +56,7 @@ const accountsStrgKey = createStorageKey(StorageEntity.Accounts);
5656const settingsStrgKey = createStorageKey ( StorageEntity . Settings ) ;
5757const ownMnemonicStrgKey = createStorageKey ( StorageEntity . OwnMnemonic ) ;
5858
59- const insertKeyCallbackWrpapper = ( passKey : CryptoKey ) => {
59+ const insertKeyCallbackWrapper = ( passKey : CryptoKey ) => {
6060 return async ( key : Uint8Array , secretKey : Uint8Array ) => {
6161 const pubKeyHex = Buffer . from ( key ) . toString ( 'hex' ) ;
6262 const secretKeyHex = Buffer . from ( secretKey ) . toString ( 'hex' ) ;
@@ -240,7 +240,7 @@ export class Vault {
240240 }
241241
242242 const options : MidenClientCreateOptions = {
243- insertKeyCallback : insertKeyCallbackWrpapper ( vaultKey )
243+ insertKeyCallback : insertKeyCallbackWrapper ( vaultKey )
244244 } ;
245245 const hdAccIndex = 0 ;
246246 const walletSeed = deriveClientSeed ( WalletType . OnChain , mnemonic , 0 ) ;
@@ -320,8 +320,9 @@ export class Vault {
320320 await savePlain ( VAULT_KEY_PASSWORD_STORAGE_KEY , passwordProtectedVaultKey ) ;
321321 }
322322
323- const options = {
324- insertKeyCallback : insertKeyCallbackWrpapper ( vaultKey )
323+ // insert keys
324+ const options : MidenClientCreateOptions = {
325+ insertKeyCallback : insertKeyCallbackWrapper ( vaultKey )
325326 } ;
326327
327328 // Wrap WASM client operations in a lock to prevent concurrent access
@@ -391,7 +392,7 @@ export class Vault {
391392
392393 const walletSeed = deriveClientSeed ( walletType , mnemonic , hdAccIndex ) ;
393394 const options : MidenClientCreateOptions = {
394- insertKeyCallback : insertKeyCallbackWrpapper ( this . vaultKey )
395+ insertKeyCallback : insertKeyCallbackWrapper ( this . vaultKey )
395396 } ;
396397
397398 // Wrap WASM client operations in a lock to prevent concurrent access
0 commit comments