NEWTON

NEWTON


Popular tags

    caigo error: undefined: contracts.CounterCompiled

    Asked

    29 days ago

    11

    views


    0

    I'm trying to run the contract example from https://pkg.go.dev/github.com/dontpanicdao/caigo#section-readme

    cd examples/contract
    go mod tidy
    go run main.go
    

    and i get

    ./main.go:28:34: undefined: contracts.CounterCompiled
    

    So i tried to compile the counter.cairo file and got

    counter.cairo:17:5: Unknown identifier '__main__.counter.write'.
        counter.write(0);
        ^***********^
    

    the code looks fine https://github.com/coburn24/caigo/blob/main/contracts/src/counter.cairo not sure why im getting this error cairo-compile v0.10.3

      caigo

    Newton

    asked

    29 days ago


    1 answers

    0

    Accepted answer

    Found a solution: had to use starknet-compile instead of cairo-compile

    Newton

    answered

    29 days ago

    Your answer

    NEWTON

    NEWTON