Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

error in compiling #27

Open
crypto-heimdall opened this issue Nov 15, 2022 · 0 comments
Open

error in compiling #27

crypto-heimdall opened this issue Nov 15, 2022 · 0 comments

Comments

@crypto-heimdall
Copy link

Thanks for the great work.
I'm wondering if there's something missing in my env.

An error occured when compiling. the error message is following :

(cairo_venv) ➜ optimized_ecc_cairo git:(main) make build
nile compile --disable-hint-validation
🤖 Compiling all Cairo contracts in the contracts directory
🔨 Compiling contracts/hash_to_curve.cairo
contracts/hash_to_curve.cairo:16:32: Unexpected token Token('LBRACE', '{'). Expected: ":".
) -> (point_on_curve: G2Point) {
^
🔨 Compiling contracts/g1.cairo
contracts/g1.cairo:8:99: Unexpected token Token('LBRACE', '{'). Expected: ":".
func add{range_check_ptr, bitwise_ptr: BitwiseBuiltin*}(x: G1Point, y: G1Point) -> (res: G1Point) {
^
🔨 Compiling contracts/fq2.cairo
contracts/fq2.cairo:9:87: Unexpected token Token('LBRACE', '{'). Expected: ":".
func add{range_check_ptr, bitwise_ptr: BitwiseBuiltin*}(x: FQ2, y: FQ2) -> (res: FQ2) {
^
🔨 Compiling contracts/g2.cairo
contracts/g2.cairo:11:96: Unexpected token Token('LBRACE', '{'). Expected: ":".
func eq{range_check_ptr, bitwise_ptr: BitwiseBuiltin*}(x: G2Point, y: G2Point) -> (bool: felt) {
^
🔨 Compiling contracts/fq.cairo
contracts/fq.cairo:9:1: Unexpected token Token('SLASH', '/'). Expected one of: "%builtins", "%lang", "@", "alloc_locals", "assert", "call", "const", "dw", "from", "func", ...
// Returns the current balance.
^
🔨 Compiling contracts/pairing.cairo
contracts/pairing.cairo:12:20: Unexpected token Token('LBRACE', '{'). Expected: ":".
res : FQ12){
^
🔨 Compiling contracts/fq12.cairo
/Users/ajpark/radius/reference/starknet/optimized_ecc_cairo/lib/fq12.cairo:7:13: Unexpected token Token('LBRACE', '{'). Expected: ":".
struct FQ12 {
^
🛑 Failed to compile the following 7 contracts:
contracts/hash_to_curve.cairo
contracts/g1.cairo
contracts/fq2.cairo
contracts/g2.cairo
contracts/fq.cairo
contracts/pairing.cairo
contracts/fq12.cairo
(cairo_venv) ➜ optimized_ecc_cairo git:(main)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant