From a9897761b0ba1b4d69468d41926e0ae53c5d1858 Mon Sep 17 00:00:00 2001 From: Gas One Cent <86567384+gas1cent@users.noreply.github.com> Date: Mon, 6 Nov 2023 13:02:19 +0400 Subject: [PATCH] refactor: remove `setupRequest` function --- solidity/contracts/Module.sol | 7 ------- solidity/interfaces/IModule.sol | 8 -------- 2 files changed, 15 deletions(-) diff --git a/solidity/contracts/Module.sol b/solidity/contracts/Module.sol index 71ab578..74db98a 100644 --- a/solidity/contracts/Module.sol +++ b/solidity/contracts/Module.sol @@ -19,13 +19,6 @@ abstract contract Module is IModule { _; } - /// @inheritdoc IModule - function setupRequest(bytes32 _requestId, bytes calldata _data) public virtual onlyOracle { - // @audit-check this is not happening anymore? - requestData[_requestId] = _data; - _afterSetupRequest(_requestId, _data); - } - /// @inheritdoc IModule function finalizeRequest( IOracle.Request calldata _request, diff --git a/solidity/interfaces/IModule.sol b/solidity/interfaces/IModule.sol index befac42..2abb952 100644 --- a/solidity/interfaces/IModule.sol +++ b/solidity/interfaces/IModule.sol @@ -43,14 +43,6 @@ interface IModule { LOGIC //////////////////////////////////////////////////////////////*/ - /** - * @notice Stores the request data and runs module-specific hooks - * - * @param _requestId The ID of the request - * @param _data The data of the request - */ - function setupRequest(bytes32 _requestId, bytes calldata _data) external; - /** * @notice Finalizes a given request and executes any additional logic set by the chosen modules *