Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

bug: Cairo 2.6.0 contracts fail to compile #1581

Closed
SamrendraS opened this issue Apr 30, 2024 · 4 comments
Closed

bug: Cairo 2.6.0 contracts fail to compile #1581

SamrendraS opened this issue Apr 30, 2024 · 4 comments
Labels
bug Something isn't working stale

Comments

@SamrendraS
Copy link
Contributor

Bug Report

On declaring contracts compiled with Cairo 2.6.0, Madara returns a 500 error

2024-04-30 12:44:13 Failed to convert BroadcastedTransaction to AccountTransaction: Failed to compile to Sierra

The same issue can be resolved when compiling with Cairo 2.5.0.

Steps to reproduce:
casm.contract_class.json
sierra.compiled_contract_class.json

The files linked above are ones generated with Cairo 2.6.0, attempting to declare them causes an error in Madara

@SamrendraS SamrendraS added the bug Something isn't working label Apr 30, 2024
@tdelabro
Copy link
Collaborator

tdelabro commented May 6, 2024

@m-kus we talked about this at some point no?

@SamrendraS, to me, this seems like the intended behavior.

This version of Madara, only supports declaring contracts compiled with one specific version of the compiler.
If we upgrade Madara to a later version of cairo, we will stop supporting the previous one.
We want to be able to execute already declared classes that have been compiled with past versions of the compiler, but to only accept new ones that have been compiled with the latest version.

@EvolveArt @apoorvsadana @antiyro any opinion?

@m-kus
Copy link
Contributor

m-kus commented Jun 5, 2024

Sorry, missed the mention 🙈

@tdelabro yes exactly, had the same issue, mentioned here https://github.com/keep-starknet-strange/madara/blob/main/crates/client/starknet-block-import/README.md#notes

IIRC one of the proposed solutions was to have multiple external compilers for the according version ranges.

Copy link

github-actions bot commented Jul 6, 2024

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍
Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs.
Thank you for your contributions!

@github-actions github-actions bot added the stale label Jul 6, 2024
@tdelabro
Copy link
Collaborator

tdelabro commented Aug 2, 2024

repository archived in favor of https://github.com/madara-alliance/madara

@tdelabro tdelabro closed this as not planned Won't fix, can't repro, duplicate, stale Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

3 participants