From 1bbd7d529bdf8eb8c0a088d5d1da8476b80abbe5 Mon Sep 17 00:00:00 2001 From: Stan Bondi Date: Wed, 18 Sep 2024 08:00:38 +0400 Subject: [PATCH] fix(wallet/client): update to use binding 1.1.0 (#1153) Description --- fix(wallet/client): update to use binding 1.1.0 fix: correct return type for get_transaction_result --- clients/javascript/wallet_daemon_client/package-lock.json | 8 ++++---- clients/javascript/wallet_daemon_client/package.json | 4 ++-- clients/javascript/wallet_daemon_client/src/index.ts | 5 +---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/clients/javascript/wallet_daemon_client/package-lock.json b/clients/javascript/wallet_daemon_client/package-lock.json index 67b3b379d..073e00f0b 100644 --- a/clients/javascript/wallet_daemon_client/package-lock.json +++ b/clients/javascript/wallet_daemon_client/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.8", "license": "ISC", "dependencies": { - "@tari-project/typescript-bindings": "1.0.3" + "@tari-project/typescript-bindings": "1.1.0" }, "devDependencies": { "typescript": "^5.3.3" @@ -22,9 +22,9 @@ "extraneous": true }, "node_modules/@tari-project/typescript-bindings": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@tari-project/typescript-bindings/-/typescript-bindings-1.0.3.tgz", - "integrity": "sha512-CWJAxXgorgDXWO3U3gg/LOB3KoYgrq63zYwR1Z0tEZW0HkkA4BKlyHywRn/WpgvoCCAmAMOM6pO2jV5x1iqM/w==" + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@tari-project/typescript-bindings/-/typescript-bindings-1.1.0.tgz", + "integrity": "sha512-foGFMz2Ju6+Hn6vl/vrWMkJnBy+Y8gKz9ApNC4b5Mwkx/Ec79AI0VsaFoxK5p3wSBAj3yUiboEAYZSEtHmfdkw==" }, "node_modules/typescript": { "version": "5.3.3", diff --git a/clients/javascript/wallet_daemon_client/package.json b/clients/javascript/wallet_daemon_client/package.json index 173b74f7a..0d530ac53 100644 --- a/clients/javascript/wallet_daemon_client/package.json +++ b/clients/javascript/wallet_daemon_client/package.json @@ -1,6 +1,6 @@ { "name": "@tari-project/wallet_jrpc_client", - "version": "1.0.8", + "version": "1.1.0", "description": "Tari wallet JSON-RPC client library", "publishConfig": { "access": "public" @@ -17,7 +17,7 @@ "author": "", "license": "ISC", "dependencies": { - "@tari-project/typescript-bindings": "1.0.3" + "@tari-project/typescript-bindings": "1.1.0" }, "devDependencies": { "typescript": "^5.3.3" diff --git a/clients/javascript/wallet_daemon_client/src/index.ts b/clients/javascript/wallet_daemon_client/src/index.ts index e29e3e71f..ef59327ee 100644 --- a/clients/javascript/wallet_daemon_client/src/index.ts +++ b/clients/javascript/wallet_daemon_client/src/index.ts @@ -64,9 +64,6 @@ import { TransactionWaitResultResponse, WebRtcStartRequest, WebRtcStartResponse, -} from "@tari-project/typescript-bindings/wallet-daemon-client"; - -import { Arg, FinalizeResult, TemplateDef, @@ -272,7 +269,7 @@ export class WalletDaemonClient { return this.__invokeRpc("transactions.get", params); } - public getTransactionResult(params: TransactionGetResultRequest): Promise { + public getTransactionResult(params: TransactionGetResultRequest): Promise { return this.__invokeRpc("transactions.get_result", params); }