diff options
-rw-r--r-- | packages/taler-wallet-embedded/src/wallet-qjs.ts | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/packages/taler-wallet-embedded/src/wallet-qjs.ts b/packages/taler-wallet-embedded/src/wallet-qjs.ts index 1c0bca69a..6af7f6dd0 100644 --- a/packages/taler-wallet-embedded/src/wallet-qjs.ts +++ b/packages/taler-wallet-embedded/src/wallet-qjs.ts @@ -146,24 +146,9 @@ class NativeWalletMessageHandler { throw Error("not implemented"); } case "reset": { - logger.info("resetting wallet"); - const oldArgs = this.walletArgs; - this.walletArgs = { ...oldArgs }; - if (oldArgs && oldArgs.persistentStoragePath) { - const ret = qjsOs.remove(oldArgs.persistentStoragePath); - if (ret != 0) { - logger.error("removing DB file failed"); - } - // Prevent further storage! - this.walletArgs.persistentStoragePath = undefined; - } - const wallet = await this.wp.promise; - wallet.stop(); - this.wp = openPromise<Wallet>(); - this.maybeWallet = undefined; - await reinit(); - logger.info("wallet re-initialized after reset"); - return wrapSuccessResponse({}); + throw Error( + "reset not supported anymore, please use the clearDb wallet-core request", + ); } default: { const wallet = await this.wp.promise; |