File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -244,10 +244,11 @@ async function verifyAccountUpdate(
244244 } ;
245245
246246 let verificationKeyRaw = account . zkapp ?. verificationKey ;
247+ assert ( verificationKeyRaw !== undefined , 'Account does not have a verification key' ) ;
247248 let verificationKey = verificationKeyRaw ?. data ;
248- assert ( verificationKey !== undefined , 'Account does not have a verification key' ) ;
249+ assert ( verificationKey !== undefined , 'Account does not have a verification key data ' ) ;
249250
250- const isVkValid = await checkVkValidity ( verificationKeyRaw ! ) ;
251+ const isVkValid = await checkVkValidity ( verificationKeyRaw ) ;
251252 if ( ! isVkValid )
252253 throw Error ( `The verification key hash is not consistent with the provided data` ) ;
253254
You can’t perform that action at this time.
0 commit comments