Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 970 Bytes

README.md

File metadata and controls

61 lines (40 loc) · 970 Bytes

Private Voting Example Codespace

Start your codespace from the codespace dropdown.

Get and run the sandbox with this command:

/bin/bash -c "$(curl -fsSL 'https://sandbox.aztec.network')"

Install packages

yarn install

Compile

aztec-cli compile . --typescript ./src/artifacts

or

yarn compile

Deploy

Add ADMIN to your environment.

ADMIN=0x1d30d4de97657983408587c7a91ba6587774b30f0e70224a0658f0357092f495
aztec-cli deploy ./target/EasyPrivateVoting.json --args $ADMIN

Test

yarn test

Error resolution

Update Contract

Get the contract code from the monorepo. The script will look at the versions defined in ./Nargo.toml and fetch that version of the code from the monorepo.

yarn update

You may need to update permissions with:

chmod +x update_contract.sh