From 770e87dda939e9506c01dd83c7f30b8d33118754 Mon Sep 17 00:00:00 2001 From: 0xOsiris Date: Fri, 24 Jan 2025 13:13:12 -0700 Subject: [PATCH] chore: remove magic numbers --- contracts/src/lib/SafeModuleSignatures.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/src/lib/SafeModuleSignatures.sol b/contracts/src/lib/SafeModuleSignatures.sol index fd9a9a96..f520bdf2 100644 --- a/contracts/src/lib/SafeModuleSignatures.sol +++ b/contracts/src/lib/SafeModuleSignatures.sol @@ -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) {