Skip to content

Commit

Permalink
replace occurrence of old dummy vk
Browse files Browse the repository at this point in the history
  • Loading branch information
Trivo25 committed Oct 4, 2024
1 parent 8ceca5e commit ca9bb88
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/mina/zkapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ import {
methodArgumentTypesAndValues,
MethodInterface,
sortMethodArguments,
VerificationKey,
} from '../proof-system/zkprogram.js';
import { Proof } from '../proof-system/proof.js';
import { PublicKey } from '../provable/crypto/signature.js';
Expand Down Expand Up @@ -711,9 +712,7 @@ class SmartContract extends SmartContractBase {
._verificationKey;
if (verificationKey === undefined) {
if (!Mina.getProofsEnabled()) {
await initializeBindings();
let [, data, hash] = Pickles.dummyVerificationKey();
verificationKey = { data, hash: Field(hash) };
verificationKey = await VerificationKey.dummy();
} else {
throw Error(
`\`${this.constructor.name}.deploy()\` was called but no verification key was found.\n` +
Expand Down

0 comments on commit ca9bb88

Please sign in to comment.