Skip to content

Commit

Permalink
chore: remove addressed todos
Browse files Browse the repository at this point in the history
by _addressed_ I mean either in this branch or by creating a task to
track it :)
  • Loading branch information
xorsal committed Nov 12, 2024
1 parent a57e89d commit b863c5e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ abstract contract ModuleAccessController is IModuleAccessController, CommonAcces
if (msg.sender != _accessControl.user && !ORACLE.isAccessModuleApproved(_accessControl.user, _accessModule)) {
revert ModuleAccessController_AccessModuleNotApproved();
}
// todo: probably a change name is required here, something like `_ensureAccess`?
_hasAccess(_accessModule, _typehash, _params, _accessControl);
_;
}
Expand Down
2 changes: 0 additions & 2 deletions solidity/test/integration/BondEscalation.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ contract Integration_BondEscalation is IntegrationBase {
_bondEscalationModule.pledgeForDispute(mockRequest, mockDispute, _createAccessControl(_secondDisputer));

// Step 7: They go into the dispute resolution module
// review: we could use a global address `_anyone`
address _escalator = makeAddr('escalator');
vm.prank(_escalator);
oracle.escalateDispute(mockRequest, mockResponse, mockDispute, _createAccessControl(_escalator));
Expand Down Expand Up @@ -428,7 +427,6 @@ contract Integration_BondEscalation is IntegrationBase {

vm.warp(block.timestamp + _bondEscalationDeadline + 1);

// todo: use `_anyone`
vm.prank(_escalator);
oracle.escalateDispute(mockRequest, mockResponse, mockDispute, _createAccessControl(_escalator));
vm.prank(_resolver);
Expand Down
1 change: 0 additions & 1 deletion solidity/test/mocks/MockAtomicArbitrator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ contract MockAtomicArbitrator is IArbitrator {
) external returns (bytes memory _result) {
_result = new bytes(0);
answer = IOracle.DisputeStatus.Won;
// review: really not sure about this change
oracle.resolveDispute(_request, _response, _dispute, IAccessController.AccessControl(address(this), bytes('')));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1684,7 +1684,6 @@ contract BondEscalationModule_Unit_AccessControl is BaseTest {

_setBondEscalation(_requestId, _numForPledgers, _numAgainstPledgers);

// todo: extract to helper when we add tests for the other access controlled functions
_mockAndExpect(
address(oracle),
abi.encodeCall(IOracleAccessController.isAccessModuleApproved, (_user, _accessModule)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,6 @@ contract BondedResponseModule_Unit_ReleaseUnutilizedResponse is BaseTest {
vm.expectRevert(IBondedResponseModule.BondedResponseModule_InvalidReleaseParameters.selector);
}

// todo: use `_anyone`
address _notTheProposer = makeAddr('not-the-proposer');
vm.prank(_notTheProposer);
bondedResponseModule.releaseUnutilizedResponse(mockRequest, _response);
Expand Down

0 comments on commit b863c5e

Please sign in to comment.