Skip to content

Commit

Permalink
quick nit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanCason committed Mar 9, 2024
1 parent 24aaece commit b1646ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/HoneyPause.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -512,12 +512,12 @@ contract HoneyPauseTest is Test {
// Create a fake bounty attempting to use the first bounty's pauser/payer with an always successful Verifyer
uint256 fakeBountyId = honey.add("BogusExploitTest", testToken, bountyAmount, new TestVerifier(), mockPauser, mockPayer, address(this));

IExploiter exploiter = new TestExploiter();

// Set the bountyId in mock contracts to the valid bountyId
mockPauser.setValidBountyId(legitimateBountyId);
mockPayer.setValidBountyId(legitimateBountyId);

IExploiter exploiter = new TestExploiter();

// Expecting failure due to bountyId checks in the impl of IPauser IPayer
vm.expectRevert("Unauthorized bountyId");
honey.claim(fakeBountyId, payable(address(this)), exploiter, "", "");
Expand Down Expand Up @@ -574,8 +574,8 @@ contract HoneyPauseTest is Test {
contract MockPauser is IPauser {
uint256 private validBountyId;

function setValidBountyId(uint256 _validBountyId) external {
validBountyId = _validBountyId;
function setValidBountyId(uint256 validBountyId_) external {
validBountyId = validBountyId_;
}

function pause(uint256 bountyId) external view {
Expand Down

0 comments on commit b1646ec

Please sign in to comment.