Skip to content

Commit

Permalink
refactor: review reconciliation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xClandestine committed Sep 27, 2024
1 parent 17331fe commit acd1831
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions src/test/unit/AVSDirectoryUnit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -314,38 +314,4 @@ contract AVSDirectoryUnitTests_operatorAVSRegisterationStatus is AVSDirectoryUni
cheats.prank(defaultAVS);
avsDirectory.registerOperatorToAVS(operator, operatorSignature);
}

// NOTE: This check was removed.
// /// @notice Verifies that an operator cannot cancel the same salt twice
// function testFuzz_revert_whenSaltCancelledTwice(bytes32 salt) public {
// address operator = cheats.addr(delegationSignerPrivateKey);
// assertFalse(delegationManager.isOperator(operator), "bad test setup");
// _registerOperatorWithBaseDetails(operator);

// cheats.startPrank(operator);
// avsDirectory.cancelSalt(salt);

// cheats.expectRevert(IAVSDirectory.SignatureSaltSpent.selector);
// avsDirectory.cancelSalt(salt);
// cheats.stopPrank();
// }

// NOTE: This check was removed.
// /// @notice Verifies that an operator cannot cancel the same salt twice
// function testFuzz_revert_whenCancellingSaltUsedToRegister(bytes32 salt) public {
// address operator = cheats.addr(delegationSignerPrivateKey);
// assertFalse(delegationManager.isOperator(operator), "bad test setup");
// _registerOperatorWithBaseDetails(operator);

// uint256 expiry = type(uint256).max;
// ISignatureUtils.SignatureWithSaltAndExpiry memory operatorSignature =
// _getOperatorSignature(delegationSignerPrivateKey, operator, defaultAVS, salt, expiry);

// cheats.prank(defaultAVS);
// avsDirectory.registerOperatorToAVS(operator, operatorSignature);

// cheats.prank(operator);
// cheats.expectRevert(IAVSDirectory.SignatureSaltSpent.selector);
// avsDirectory.cancelSalt(salt);
// }
}

0 comments on commit acd1831

Please sign in to comment.