Skip to content

Commit

Permalink
Tentative integration testing flow
Browse files Browse the repository at this point in the history
  • Loading branch information
storojs72 committed Aug 1, 2023
1 parent 8a0c184 commit a9ffa95
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,15 @@ jobs:
- name: Deploy main contract
run: |
sleep 1 && forge script script/Deployment.s.sol:NovaVerifierDeployer --fork-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --broadcast
forge script script/Deployment.s.sol:NovaVerifierDeployer --fork-url http://127.0.0.1:8545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 --broadcast
- name: Load proof and public parameters
run: |
python loader.py verifier-key.json compressed-snark.json 0x720472c8ce72c2a2d711333e064abd3e6bbeadd3
- name: Check proof verification status
run: |
[[ $(cast call 0x720472c8ce72c2a2d711333e064abd3e6bbeadd3 "verify(uint32,uint256[],uint256[],bool)(bool)" "3" "[1]" "[0]" "false" --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80) == true ]] && exit 0 || exit 1
unit-tests:
strategy:
Expand Down
2 changes: 1 addition & 1 deletion loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def formatNumber(num):
)

PRIVATE_KEY = "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
CONTRACT_ADDRESS = "0x720472c8ce72c2a2d711333e064abd3e6bbeadd3"
CONTRACT_ADDRESS = sys.argv[3]

PUSH_TO_PROOF_FUNC_SIG = "pushToProof((" \
"(uint256,uint256[])," \
Expand Down

0 comments on commit a9ffa95

Please sign in to comment.