diff --git a/src/util/BaseRestClient.ts b/src/util/BaseRestClient.ts index 4d7e3c7..4d0c957 100644 --- a/src/util/BaseRestClient.ts +++ b/src/util/BaseRestClient.ts @@ -157,15 +157,12 @@ export default abstract class BaseRestClient { } } - const preparedRequestParams = await this.prepareSignParams( - params, - isPublicApi - ); + const signResult = await this.prepareSignParams(params, isPublicApi); if (method === 'GET') { - options.params = preparedRequestParams.paramsWithSign; + options.params = signResult.paramsWithSign; } else { - options.data = preparedRequestParams.paramsWithSign; + options.data = signResult.paramsWithSign; } return axios(options)