Skip to content

Commit

Permalink
test(medusa): fix compilation after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJabberwock committed Nov 27, 2024
1 parent 3730d59 commit 23dff81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
2 changes: 1 addition & 1 deletion test/invariants/handlers/BaseHandler.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ contract BaseHandler is Setup, Actors {
mapping(bytes32 _responseId => bool _isFinalized) internal _ghost_finalizedResponses;

// Track disputes
mapping(bytes32 _response => bytes32[] _disputeIds) internal _ghost_disputes; // requestId => disputeIds
mapping(bytes32 _requestId => bytes32[] _disputeIds) internal _ghost_disputes; // requestId => disputeIds
mapping(bytes32 _disputeId => IOracle.Dispute _data) internal _ghost_disputeData;
mapping(bytes32 _disputeId => bool _escalated) internal _ghost_escalatedDisputes;

Expand Down
19 changes: 4 additions & 15 deletions test/invariants/helpers/Utils.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ contract Utils {
}
}

function assertEq(bytes32 a, bytes32 b) internal {
assertEq(a, b, 'assertEq: a != b');
function assertNotEq(address a, address b) internal {
assertNotEq(a, b, 'assertNotEq: a == b');
}

function assertEq(bytes32 a, bytes32 b, string memory reason) internal {
if (a != b) {
function assertNotEq(address a, address b, string memory reason) internal {
if (a == b) {
emit TestFailure(reason);
assert(false);
}
Expand Down Expand Up @@ -139,17 +139,6 @@ contract Utils {
}
}

function assertNotEq(address a, address b) internal {
assertNotEq(a, b, 'assertNotEq: a == b');
}

function assertNotEq(address a, address b, string memory reason) internal {
if (a == b) {
emit TestFailure(reason);
assert(false);
}
}

function assertNotEq(bytes memory a, bytes memory b) internal {
assertNotEq(a, b, 'assertNotEq: a == b');
}
Expand Down

0 comments on commit 23dff81

Please sign in to comment.