Open Ljiacheng opened 1 year ago
By the way, with a file tree:
.
├── Scarb.toml
├── cairo_project.toml
└── src
├── hello_starknet.cairo
├── interface.cairo
└── lib.cairo
I don't known how to build a [contract].json file with "starknet-compile"
You can follow these steps to pull a more recent version of the cairo package which includes the compiler but use 1003d5d14c09191bbfb64ee318d1975584b3c819
instead of the documented commit sha.
Don't forget to apply the troubleshooting section as needed.
I build a contract which is compiled by Scarb. And I get a file named "hello_HelloStarknet.sierra.json" with command
scarb --release build
for example. When I use commandstarknet declare --contract target/release/hello_HelloStarknet.sierra.json
, I get this error:scarb version:
starknet version: