From eed582bad0e37c9ecd42d979944f4a4929838a10 Mon Sep 17 00:00:00 2001 From: Tiago Siebler Date: Tue, 23 Jul 2024 16:27:13 +0100 Subject: [PATCH] v1.0.8: fix() withdraw params in body --- package-lock.json | 4 ++-- package.json | 2 +- src/RestClient.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 918412a..2fa8f60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "gateio-api", - "version": "1.0.6", + "version": "1.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "gateio-api", - "version": "1.0.6", + "version": "1.0.8", "license": "MIT", "dependencies": { "axios": "^1.6.6", diff --git a/package.json b/package.json index 4aace3e..089017c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gateio-api", - "version": "1.0.7", + "version": "1.0.8", "description": "Complete & robust Node.js SDK for Gate.io's REST APIs, WebSockets & WebSocket APIs, with TypeScript declarations.", "scripts": { "clean": "rm -rf dist/*", diff --git a/src/RestClient.ts b/src/RestClient.ts index aacdd0a..dfd5bf8 100644 --- a/src/RestClient.ts +++ b/src/RestClient.ts @@ -335,7 +335,7 @@ export class RestClient extends BaseRestClient { * @returns Promise */ submitWithdrawal(params: SubmitWithdrawalReq): Promise { - return this.postPrivate('/withdrawals', { query: params }); + return this.postPrivate('/withdrawals', { body: params }); } /**