await Database.add({ [self.id]: record }, Wallet.DB_NAME)\r
return self\r
} catch (err) {\r
+ await self.destroy()\r
throw new Error('Error creating new Wallet', { cause: err })\r
}\r
}\r
await Database.add({ [self.id]: record }, Wallet.DB_NAME)\r
return self\r
} catch (err) {\r
+ await self.destroy()\r
throw new Error('Error creating new Wallet', { cause: err })\r
}\r
}\r
/**\r
* Retrieves an existing wallet from the database using its UUID.\r
*\r
- * @param {string} id - Entered by user when the wallet was initially created\r
+ * @param {string} id - Generated when the wallet was created or imported\r
* @returns {Wallet} Restored locked Wallet\r
*/\r
static async restore (id: string): Promise<Wallet> {\r