foundry-rs / starknet-foundry

Blazing fast toolkit for developing Starknet contracts.
https://foundry-rs.github.io/starknet-foundry/
MIT License
295 stars 143 forks source link

Make `sncast declare` work with scarb 2.7.0 #2352

Open ksew1 opened 1 month ago

ksew1 commented 1 month ago

Which component is your feature related to?

Cast

Feature Request

When running sncast declare on Scarb 2.7.0, we get the following error:

error: An error occurred in the called contract = ContractErrorData { revert_error: "Sierra compilation error: Unable to compile Sierra to Casm. No matching ContractClass or CasmContractClass found for version 1.6.0" }

Because of this, the CI currently runs on the previous versions. After making sncast declare work with Scarb 2.7.0, please also change the CI to run on 2.7.0. Additionally, unignore this test: test_script_init_happy_case().


integraledelebesgue commented 3 weeks ago

Solving this issue is blocked until devnet's next release with my fix and starknet-rs fix of an issue I reported

integraledelebesgue commented 1 week ago

We just need to bump starknet-rs to 660a732

integraledelebesgue commented 2 days ago

It turns out that the issue still remains (on Devnet) despite the starknet-rs fix - starknet-devnet-rs uses outdated starknet-rs dependencies without that fix. Marking as blocked until devnet bumps SDK.