I was unable to reproduce this using sierra-compile CLI, because textual Sierra generated for this code is unparseable 😢
➜ cairo git:(main) target/release/sierra-compile ~/Developer/Temp/pragma-oracle/target/dev/pragma.sierra foo.casm
Error: Failed calculating Sierra variables.
Caused by:
0: error from the program registry
1: used the same function id twice
Bug Report
Cairo version: 2.1.0 Scarb version: 0.6.0
Current behavior:
scarb build
fails in this particular revision of this particular repository: https://github.com/Astraly-Labs/pragma-oracle/tree/b958cbcbaed547d904c7a2e7b1eb547f65f04c5eWith:
This is compiling non-Starknet Sierra to CASM. Removing
[lib] casm=true
fromScarb.toml
stops this error to be triggered.Expected behavior:
This code should successfully compile to CASM. Especially, as it's properly compiling as Starknet contract.
Steps to reproduce:
asdf install scarb 0.6.0
scarb build
I was unable to reproduce this using
sierra-compile
CLI, because textual Sierra generated for this code is unparseable 😢Other information: