Skip to content

Commit 82af493

Browse files
committed
update comment
1 parent b1f2c24 commit 82af493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/contracts/abstract/SelfVerificationRoot.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ abstract contract SelfVerificationRoot is ISelfVerificationRoot {
8989
* @param proofPayload Packed data from relayer in format: | 32 bytes attestationId | proof data |
9090
* @param userContextData User-defined data in format: | 32 bytes destChainId | 32 bytes userIdentifier | data |
9191
* @custom:data-format proofPayload = | 32 bytes attestationId | proofData |
92-
* @custom:data-format userContextData = | 32 bytes configId | 32 bytes destChainId | 32 bytes userIdentifier | data |
92+
* @custom:data-format userContextData = | 32 bytes destChainId | 32 bytes userIdentifier | data |
9393
* @custom:data-format hubData = | 1 bytes contract version | 31 bytes buffer | 32 bytes scope | 32 bytes attestationId | proofData |
9494
*/
9595
function verifySelfProof(bytes calldata proofPayload, bytes calldata userContextData) public {
@@ -98,7 +98,7 @@ abstract contract SelfVerificationRoot is ISelfVerificationRoot {
9898
revert InvalidDataFormat();
9999
}
100100

101-
// Minimum userDefinedData length: 32 (destChainId) + 32 (userIdentifier) + 32 (userDefinedData) = 96 bytes
101+
// Minimum userDefinedData length: 32 (destChainId) + 32 (userIdentifier) + 0 (userDefinedData) = 64 bytes
102102
if (userContextData.length < 64) {
103103
revert InvalidDataFormat();
104104
}

0 commit comments

Comments
 (0)