Skip to content

Commit

Permalink
Merge pull request #813 from etherisc/feature/oracle-service-refactoring
Browse files Browse the repository at this point in the history
refactor: rename resendRequest to resendResponse in FlightProduct and related contracts (#745)
  • Loading branch information
doerfli authored Dec 13, 2024
2 parents 2247f73 + 4ff28f9 commit f060b81
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/examples/flight/FlightProduct.sol
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,12 @@ contract FlightProduct is
}


function resendRequest(RequestId requestId)
function resendResponse(RequestId requestId)
external
virtual
restricted()
{
_resendRequest(requestId);
_resendResponse(requestId);
}


Expand Down
2 changes: 1 addition & 1 deletion contracts/examples/flight/FlightProductAuthorization.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract FlightProductAuthorization

// authorize public role (additional authz via onlyOwner)
functions = _authorizeForTarget(getMainTargetName(), PUBLIC_ROLE());
_authorize(functions, FlightProduct.resendRequest.selector, "resendRequest");
_authorize(functions, FlightProduct.resendResponse.selector, "resendResponse");
_authorize(functions, FlightProduct.processPayoutsAndClosePolicies.selector, "processPayoutsAndClosePolicies");
_authorize(functions, FlightProduct.setConstants.selector, "setConstants");
_authorize(functions, FlightProduct.setTestMode.selector, "setTestMode");
Expand Down
2 changes: 1 addition & 1 deletion contracts/shared/InstanceLinkedComponent.sol
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ abstract contract InstanceLinkedComponent is
}


function _resendRequest(RequestId requestId)
function _resendResponse(RequestId requestId)
internal
virtual
{
Expand Down
4 changes: 2 additions & 2 deletions test/examples/flight/FlightProduct.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ contract FlightProductTest is FlightBaseTest {

// WHEN resend request (with sufficient gas)
vm.startPrank(flightOwner);
flightProduct.resendRequest(requestId);
flightProduct.resendResponse(requestId);
vm.stopPrank();

// THEN
Expand Down Expand Up @@ -870,7 +870,7 @@ contract FlightProductTest is FlightBaseTest {
_transferTokenToPoolWallet(5000 * 10 ** flightUSD.decimals(), true);

vm.startPrank(statusProvider);
flightProduct.resendRequest(requestId);
flightProduct.resendResponse(requestId);
vm.stopPrank();

// check intermediate state
Expand Down

0 comments on commit f060b81

Please sign in to comment.