File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
contracts/contracts/abstract Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments