Skip to content

Commit

Permalink
refactor: remove setupRequest function
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent committed Nov 6, 2023
1 parent 611a30f commit a989776
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
7 changes: 0 additions & 7 deletions solidity/contracts/Module.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 0 additions & 8 deletions solidity/interfaces/IModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit a989776

Please sign in to comment.