NEWTON
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
0
Accepted answer
Found a solution: had to use starknet-compile
instead of cairo-compile
Newton
answered
29 days ago
Why does this Cairo program put powers of 2 in the memory?
Abi.encode and Abi.decode in Cairo?
How to install Cairo v0.10.0 on my device?
StarknetErrorCode.ENTRY_POINT_NOT_FOUND_IN_CONTRACT error in Cairo. Can anyone help?
How do I use Create React App in StarknetJS?
Has anyone implemented a minimal proxy in Cairo lang?
Cairo Lang / StarkNet: What are Revoked references? What is alloc_locals?
How to transpile multiple contracts at once using warp?
How do I connect my DAPP to Starknet-devnet using starknetjs?
What are the efficiency gains of direct Cairo vs. transpiling with warp?
Getting the CLASS_HASH of a contract in Cairo
Status “received” while deploying starknet transaction. Is it ok?
Does Cairo Lang have any logic operators?
hardhat test