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

readme instructions produce failed tests #10

Open
zyclonepunch opened this issue Oct 7, 2023 · 0 comments
Open

readme instructions produce failed tests #10

zyclonepunch opened this issue Oct 7, 2023 · 0 comments

Comments

@zyclonepunch
Copy link

it seems that when one follows the outlined setup instructions in the readme

  • foundry install
  • npm install
  • circom is installed globally:
➜  zyclone-2 git:(main) circom --version
circom compiler 2.1.6
  • npm run test produces failed tests
2023-10-07T04:15:45.915413Z ERROR apply:ext: evm::cheatcodes: non-empty stderr args=["huffc", "src/Huff/__TEMP__khwrbpgahxkvqtuxzrtadxxkpznxqbtyETHZyclone.huff", "-b", "-e", "shanghai"] stderr="\u{1b}[31m\nError: Duplicate MACRO name found: \"IS_KNOWN_ROOT\" \nMACRO names should be unique\n\n\u{1b}[0m\n"

...

Failing tests:
Encountered 10 failing tests in test/Huff/Zyclone.t.sol:ZycloneHuffTest
[FAIL. Reason: EvmError: Revert] test_clear() (gas: 8388)
[FAIL. Reason: EvmError: Revert] test_clear_reverts_if_not_committed() (gas: 8432)
[FAIL. Reason: Call reverted as expected, but without data] test_commit_revert_if_commitment_hash_not_within_field() (gas: 9152)
[FAIL. Reason: EvmError: Revert] test_commit_revert_if_has_pending_commit() (gas: 8410)
[FAIL. Reason: Call reverted as expected, but without data] test_commit_reverts_if_callvalue_not_denomination() (gas: 9165)
[FAIL. Reason: EvmError: Revert] test_deposit_and_withdraw() (gas: 12501)
[FAIL. Reason: EvmError: Revert] test_deposit_twice_then_withdraw() (gas: 12395)
[FAIL. Reason: EvmError: Revert] test_prevent_double_spend() (gas: 12437)
[FAIL. Reason: EvmError: Revert] test_prevent_withdraw_from_non_existent_root() (gas: 12401)
[FAIL. Reason: EvmError: Revert] test_withdraw_reverts_if_fee_exceeds_denomination() (gas: 12458)

other possibly relevant output

[INFO]  snarkJS: Reading betatauG1
[INFO]  snarkJS: Circuit hash: 
                acd97960 363e178d cf602d9c 0f1824ad
                4cb8d6e0 c5720c11 da95f16b 7aff8d3f
                be1103d4 9d51b787 cb521e0c c799be20
                6e8d3d49 8c00515e 0eaea6e6 07f37492
[INFO]  snarkJS: Reading r1cs
[INFO]  snarkJS: Reading tauG1
[INFO]  snarkJS: Reading tauG2
[INFO]  snarkJS: Reading alphatauG1
[INFO]  snarkJS: Reading betatauG1
[INFO]  snarkJS: Circuit hash: 
                5f59128c e4a4dc26 ce7d3d40 5f3cd9e6
                2ba5e252 d704162d d2b7c21b 1eecfd49
                06c83f25 4b7de653 64faba11 ae418181
                cd308a46 42604088 416b0dff 40d50a1c
[INFO]  snarkJS: EXPORT VERIFICATION KEY STARTED
[INFO]  snarkJS: > Detected protocol: groth16
[INFO]  snarkJS: EXPORT VERIFICATION KEY FINISHED
[INFO]  snarkJS: EXPORT VERIFICATION KEY STARTED
[INFO]  snarkJS: > Detected protocol: groth16
[INFO]  snarkJS: EXPORT VERIFICATION KEY FINISHED
[INFO]  snarkJS: EXPORT VERIFICATION KEY STARTED
[INFO]  snarkJS: > Detected protocol: groth16
[INFO]  snarkJS: EXPORT VERIFICATION KEY FINISHED
[INFO]  snarkJS: EXPORT VERIFICATION KEY STARTED
[INFO]  snarkJS: > Detected protocol: groth16
[INFO]  snarkJS: EXPORT VERIFICATION KEY FINISHED
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

No branches or pull requests

1 participant