OpenZeppelin / cairo-contracts

OpenZeppelin Contracts written in Cairo for Starknet, a decentralized ZK Rollup
https://docs.openzeppelin.com/contracts-cairo
MIT License
800 stars 322 forks source link

Problems with Cairo and Scarb 2.5.0 #877

Closed martriay closed 5 months ago

martriay commented 5 months ago

We should update the library to support Cairo 2.5.0.

Context

Many users are experiencing issues when trying to use our v0.8.1 release with Cairo and Scarb v2.5.0.

The problem is that v2.5.0 introduced breaking API changes, so it should have been v3.0.0 instead. This is leaking downstream to Scarb where the compatibility check fails to detect this version update as a breaking one, resulting in this error. You should not be allowed to use Contracts for Cairo <=0.8.1 with Cairo 2.5.0.

vivekmishra9631 commented 1 month ago

Heyy, I am getting this error now. How do I resolve. image