From 9e9fffd5f12eb4749fd4c96efcce71f4c5c5471a Mon Sep 17 00:00:00 2001 From: opatavi Date: Wed, 20 Sep 2023 11:55:23 +0300 Subject: [PATCH] refactor: changed the order for backward compatibility --- src/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index ca6c476..356c87a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -94,23 +94,23 @@ export class GelatoRelay { /** * @param {CallWithSyncFeeRequest} request - CallWithSyncFee request to be relayed by Gelato Executors - * @param {string} [sponsorApiKey] Optional Sponsor API key to be used for the call * @param {RelayRequestOptions} [options] - Optional Relay configuration + * @param {string} [sponsorApiKey] Optional Sponsor API key to be used for the call * @returns {Promise} Response object with taskId parameter * */ callWithSyncFee = ( request: CallWithSyncFeeRequest, - sponsorApiKey?: string, - options?: RelayRequestOptions + options?: RelayRequestOptions, + sponsorApiKey?: string ): Promise => library.relayWithSyncFee({ request, sponsorApiKey, options }, this.#config); /** * @param {CallWithSyncFeeERC2771Request | CallWithSyncFeeConcurrentERC2771Request} request - Call with sync fee: Sequential ERC2771 or Concurrent ERC2771 request to be relayed by Gelato Executors * @param {ethers.BrowserProvider | ethers.Wallet} walletOrProvider - BrowserProvider [front-end] or Wallet [back-end] to sign the payload - * @param {string} [sponsorApiKey] Optional Sponsor API key to be used for the call * @param {RelayRequestOptions} [options] - Optional Relay configuration + * @param {string} [sponsorApiKey] Optional Sponsor API key to be used for the call * @returns {Promise} Response object with taskId parameter * */ @@ -119,8 +119,8 @@ export class GelatoRelay { | CallWithSyncFeeERC2771Request | CallWithSyncFeeConcurrentERC2771Request, walletOrProvider: ethers.BrowserProvider | ethers.Wallet, - sponsorApiKey?: string, - options?: RelayRequestOptions + options?: RelayRequestOptions, + sponsorApiKey?: string ): Promise => library.relayWithCallWithSyncFeeERC2771( {