Skip to content

Commit

Permalink
fix: change fee currency to eth (0xM Q-02)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
  • Loading branch information
tmigone committed Sep 19, 2023
1 parent 01d4d9e commit cafbe97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/GelatoManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit cafbe97

Please sign in to comment.