From 52a7e4e0471bd5aa2cee56d85edb21da78487e89 Mon Sep 17 00:00:00 2001 From: Gas One Cent <86567384+gas1cent@users.noreply.github.com> Date: Mon, 6 Nov 2023 13:11:47 +0400 Subject: [PATCH] fix: tests --- solidity/test/unit/modules/finality/CallbackModule.t.sol | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/solidity/test/unit/modules/finality/CallbackModule.t.sol b/solidity/test/unit/modules/finality/CallbackModule.t.sol index 52ce8369..e99e41de 100644 --- a/solidity/test/unit/modules/finality/CallbackModule.t.sol +++ b/solidity/test/unit/modules/finality/CallbackModule.t.sol @@ -18,13 +18,9 @@ contract BaseTest is Test, Helpers { CallbackModule public callbackModule; // A mock oracle IOracle public oracle; - // // Mock request - // IOracle.Request internal _mockRequest; - // // Mock response - // IOracle.Response internal _mockResponse; event Callback(bytes32 indexed _request, address indexed _target, bytes _data); - event RequestFinalized(bytes32 indexed _requestId, address _finalizer); + event RequestFinalized(bytes32 indexed _requestId, IOracle.Response _response, address _finalizer); /** * @notice Deploy the target and mock oracle+accounting extension @@ -84,7 +80,7 @@ contract CallbackModule_Unit_FinalizeRequest is BaseTest { // Check: is the event emitted? vm.expectEmit(true, true, true, true, address(callbackModule)); - emit RequestFinalized(_requestId, _proposer); + emit RequestFinalized(_requestId, _mockResponse, _proposer); vm.prank(address(oracle)); callbackModule.finalizeRequest(_request, _mockResponse, _proposer);