Skip to content

Commit

Permalink
chore: revert (#4587)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanglonghong authored Jun 26, 2023
1 parent 9f4229b commit 14f2ef2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/adapters/relayer/src/gelato/gelato.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,7 @@ export const send = async (
logger.info("Sending to Gelato network", requestContext, methodContext, request);

// Future intented way to call
//const response = await gelatoSDKSend(request, gelatoApiKey, { gasLimit: GAS_LIMIT_FOR_RELAYER });
let response;
if (chainId == 59140) {
response = await gelatoSDKSend({ chainId, data: encodedData, target: destinationAddress }, gelatoApiKey);
} else {
response = await gelatoSDKSend({ chainId, data: encodedData, target: destinationAddress }, gelatoApiKey, {
gasLimit: GAS_LIMIT_FOR_RELAYER(chainId),
});
}
const response = await gelatoSDKSend(request, gelatoApiKey, { gasLimit: GAS_LIMIT_FOR_RELAYER(chainId) });

if (!response) {
throw new RelayerSendFailed({ response: response });
Expand Down

0 comments on commit 14f2ef2

Please sign in to comment.