We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f4cb48 commit eb30f37Copy full SHA for eb30f37
src/lib/mina/v1/transaction-validation.ts
@@ -244,11 +244,10 @@ async function verifyAccountUpdate(
244
};
245
246
let verificationKeyRaw = account.zkapp?.verificationKey;
247
- assert(verificationKeyRaw !== undefined, 'Account does not have a verification key');
248
- let verificationKey = verificationKeyRaw.data;
+ let verificationKey = verificationKeyRaw?.data;
249
assert(verificationKey !== undefined, 'Account does not have a verification key');
250
251
- const isVkValid = await checkVkValidity(verificationKeyRaw);
+ const isVkValid = await checkVkValidity(verificationKeyRaw!);
252
if (!isVkValid)
253
throw Error(`The verification key hash is not consistent with the provided data`);
254
0 commit comments