Skip to content

Commit

Permalink
refactor: changed the order for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
opatavi committed Sep 20, 2023
1 parent 2344881 commit 9e9fffd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<RelayResponse>} Response object with taskId parameter
*
*/
callWithSyncFee = (
request: CallWithSyncFeeRequest,
sponsorApiKey?: string,
options?: RelayRequestOptions
options?: RelayRequestOptions,
sponsorApiKey?: string
): Promise<RelayResponse> =>
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<RelayResponse>} Response object with taskId parameter
*
*/
Expand All @@ -119,8 +119,8 @@ export class GelatoRelay {
| CallWithSyncFeeERC2771Request
| CallWithSyncFeeConcurrentERC2771Request,
walletOrProvider: ethers.BrowserProvider | ethers.Wallet,
sponsorApiKey?: string,
options?: RelayRequestOptions
options?: RelayRequestOptions,
sponsorApiKey?: string
): Promise<RelayResponse> =>
library.relayWithCallWithSyncFeeERC2771(
{
Expand Down

0 comments on commit 9e9fffd

Please sign in to comment.