File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -63,13 +63,12 @@ abstract contract LCPClientZKDCAPBase is LCPClientCommon {
6363 _initializeClient (clientStorage, protoClientState, protoConsensusState);
6464 require (clientState.zkdcap_verifier_info.length == 64 , "invalid verifier info length " );
6565 require (clientState.zkdcap_verifier_info[0 ] == 0x01 , "invalid verifier info version " );
66- // 33..64 bytes: image ID
67- bytes32 imageId;
6866 bytes memory verifierInfo = clientState.zkdcap_verifier_info;
67+ // 32..64 bytes: image ID
68+ bytes32 imageId;
6969 assembly {
70- imageId := mload (add (verifierInfo, 33 ))
70+ imageId := mload (add (add ( verifierInfo, 32 ), 32 ))
7171 }
72- assert (imageId != 0 );
7372 clientStorage.zkDCAPRisc0ImageId = imageId;
7473 return clientState.latest_height;
7574 }
You can’t perform that action at this time.
0 commit comments