From cafbe97aa63d2898f76e083e763cdfc8ab501a03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Migone?= Date: Thu, 14 Sep 2023 16:27:19 -0300 Subject: [PATCH] fix: change fee currency to eth (0xM Q-02) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Migone --- contracts/GelatoManager.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contracts/GelatoManager.sol b/contracts/GelatoManager.sol index 06c85b5..8a07873 100644 --- a/contracts/GelatoManager.sol +++ b/contracts/GelatoManager.sol @@ -80,6 +80,8 @@ contract GelatoManager is AutomateTaskCreator, Governed { /** * @notice Deposit eth into the Gelato Network treasury + * This function is NOT meant to be used by the end user, only by the contract operator + * Any funds deposited via this call will be used to pay for Gelato Network tasks */ function deposit() external payable { if (msg.value == 0) revert InvalidDepositAmount(); @@ -133,7 +135,7 @@ contract GelatoManager is AutomateTaskCreator, Governed { moduleData.modules[0] = Module.RESOLVER; moduleData.args[0] = _resolverModuleArg(resolverAddress, resolverData); - bytes32 taskId = _createTask(execAddress, execDataOrSelector, moduleData, address(0)); + bytes32 taskId = _createTask(execAddress, execDataOrSelector, moduleData, ETH); emit ResolverTaskCreated(taskId); return taskId;