Skip to content

Commit

Permalink
refactor: remove check for 0 signer
Browse files Browse the repository at this point in the history
  • Loading branch information
PacificYield committed Dec 19, 2024
1 parent 4658e31 commit cfc5e7a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions contracts/contracts/KMSVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,6 @@ contract KMSVerifier is UUPSUpgradeable, Ownable2StepUpgradeable, EIP712Upgradea
/// @return true if enough provided signatures are valid, false otherwise
function verifySignaturesDigest(bytes32 digest, bytes[] memory signatures) internal virtual returns (bool) {
uint256 numSignatures = signatures.length;

if (numSignatures == 0) {
revert KMSZeroSignature();
}

uint256 threshold = getThreshold();

if (numSignatures < threshold) {
Expand Down

0 comments on commit cfc5e7a

Please sign in to comment.