From dd5658fdee0d0c4ed48df7cf729a1304f3a1b05d Mon Sep 17 00:00:00 2001 From: shaito Date: Fri, 13 Sep 2024 10:24:20 -0300 Subject: [PATCH] fix: finalize --- solidity/contracts/Oracle.sol | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/solidity/contracts/Oracle.sol b/solidity/contracts/Oracle.sol index a93e52d..00b1d46 100644 --- a/solidity/contracts/Oracle.sol +++ b/solidity/contracts/Oracle.sol @@ -350,18 +350,18 @@ contract Oracle is IOracle, AccessController { finalizedAt[_requestId] = uint128(block.number); if (address(_request.finalityModule) != address(0)) { - IFinalityModule(_request.finalityModule).finalizeRequest(_request, _response, msg.sender); + IFinalityModule(_request.finalityModule).finalizeRequest(_request, _response, _accessControl.user); } if (address(_request.resolutionModule) != address(0)) { - IResolutionModule(_request.resolutionModule).finalizeRequest(_request, _response, msg.sender); + IResolutionModule(_request.resolutionModule).finalizeRequest(_request, _response, _accessControl.user); } - IDisputeModule(_request.disputeModule).finalizeRequest(_request, _response, msg.sender); - IResponseModule(_request.responseModule).finalizeRequest(_request, _response, msg.sender); - IRequestModule(_request.requestModule).finalizeRequest(_request, _response, msg.sender); + IDisputeModule(_request.disputeModule).finalizeRequest(_request, _response, _accessControl.user); + IResponseModule(_request.responseModule).finalizeRequest(_request, _response, _accessControl.user); + IRequestModule(_request.requestModule).finalizeRequest(_request, _response, _accessControl.user); - emit OracleRequestFinalized(_requestId, _responseId, msg.sender, block.number); + emit OracleRequestFinalized(_requestId, _responseId, _accessControl.user, block.number); } /**