OpenZeppelin / cairo-contracts

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

Can't compile account with `scarb 2.5.0`, `snforge 0.16.0`, `openzeppelin 0.8.1` #871

Closed delaaxe closed 8 months ago

delaaxe commented 8 months ago
Screenshot 2024-01-29 at 11 33 32

Is there a workaround or something with my own env?

📝 Details

🔢 Code to reproduce bug

martriay commented 8 months ago

Hey there! The problem is that v0.8.1 is intended to work with Cairo 2.4.1 as specified in its Scarb.toml file. We have an open issue to support Cairo 2.5.0. In the meantime, you could manually update the account to work with Cairo 2.5.0 at your own risk. Make sure to properly review and test any modified code.

delaaxe commented 8 months ago

we don't actually use the account, we'd juste like to import the ERC20 definitions (which we actually can't use anymore since the decimals are hardcoded to 18, so we had to copy paste files)

martriay commented 8 months ago

We have a guide in our documentation on how to customize decimals.

martriay commented 8 months ago

Closing as duplicate of #877