Skip to content

Commit 458f9dd

Browse files
committed
refactor: illegal to invalid
1 parent 9b6510f commit 458f9dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/examples/zkapps/zkapp-self-update.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,22 @@ Provable.log('original verification key', fooVerificationKey);
6060
const { verificationKey: barVerificationKey } = await Bar.compile();
6161

6262
try {
63-
const illegalVerificationKey = new VerificationKey({
63+
const invalidVerificationKey = new VerificationKey({
6464
data: fooVerificationKey!.data,
6565
hash: barVerificationKey.hash,
6666
});
6767

6868
const tx2x = await Mina.transaction(deployer, async () => {
6969
// VK with mismatched hash and data should throw
70-
await contract.replaceVerificationKey(illegalVerificationKey);
70+
await contract.replaceVerificationKey(invalidVerificationKey);
7171
});
7272
await tx2x.prove();
7373
await tx2x.sign([deployer.key]).send();
7474
} catch (error: any) {
7575
if (
7676
error.message.includes('The verification key hash is not consistent with the provided data')
7777
) {
78-
console.log('correctly threw on illegal verification key');
78+
console.log('correctly threw on invalid verification key');
7979
} else {
8080
throw error;
8181
}

0 commit comments

Comments
 (0)