Skip to content

Commit

Permalink
Merge pull request #146 from worldcoin/N-07
Browse files Browse the repository at this point in the history
N-07
  • Loading branch information
0xOsiris authored Jan 27, 2025
2 parents e80b3a8 + 80ee986 commit 953199f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/src/lib/SafeModuleSignatures.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ library SafeModuleSignatures {
pure
returns (uint256 expectedLength)
{
expectedLength = 0x41 * threshold;
expectedLength = ECDSA_SIGNATURE_LENGTH * threshold;
if (signatures.length < expectedLength) {
revert InvalidSignatureLength(expectedLength, signatures.length);
}

for (uint256 i = 0; i < threshold; ++i) {
uint256 signaturePos = i * 0x41;
uint256 signaturePos = i * ECDSA_SIGNATURE_LENGTH;
uint8 signatureType = uint8(signatures[signaturePos + 0x40]);

if (signatureType == 0) {
Expand Down

0 comments on commit 953199f

Please sign in to comment.