Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voting Application B VM logic tests #361

Merged
merged 125 commits into from
Oct 24, 2022
Merged

Voting Application B VM logic tests #361

merged 125 commits into from
Oct 24, 2022

Conversation

ymekuria
Copy link
Contributor

@ymekuria ymekuria commented Aug 26, 2022

This PR includes a wide range of different tests for the voting application. See the testing app b doc for reference

  • minor fix for disabling proving with the proofsEnabled: boolean flag when creating child account updates

Base automatically changed from feature/voting-contract to main September 20, 2022 08:10
@@ -1,17 +1,36 @@
import { Experimental, Mina, AccountUpdate } from 'snarkyjs';
import {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this test script be run as part of ./run-integration-tests.sh, so that voting tested in CI?
(And does this mean the voting/run.ts script doesn't need to run in CI anymore? Sorry I haven't really looked at either of these yet)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

run.ts sets the preconditions and parameters for the tests we want to run and then calls into test.ts to execute all the tests, so it's being run although maybe a bit confusing :D

/**
* Function used to upgrade a Membership contract with slightly modified methods, in order to manipulate the existing verification key
*/
/* export async function upgradeMembershipContract(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this intentionally commented out? Can you delete it in that case? Are we testing this somewhere else?

src/examples/zkapps/voting/membership.ts Outdated Show resolved Hide resolved
src/examples/zkapps/voting/voting.ts Outdated Show resolved Hide resolved
Copy link
Member

@bkase bkase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woo 🥳

@Trivo25 Trivo25 merged commit f40e461 into main Oct 24, 2022
@Trivo25 Trivo25 deleted the feature/zkapp-b-test branch October 24, 2022 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants