Closed kongtaoxing closed 5 months ago
Hello! Thanks for opening this PR, but this is not really a bug in the contract but a communication problem. Wizard for Cairo is not compatible with Cairo 2.5.0, which introduced a breaking change in the language that results in this error. Wizard should be used with Cairo 2.4.4 or lower.
I created an issue to tackle the wider task of bumping the compiler throughout the repo not just this file, so I'll close this PR in favor of that.
Once again, thanks for doing this! If you're interested in contributing to the project please check out this list of issues open to tackle.
Fixes bug in
src/account/account.cairo
Scarb version: scarb 2.5.0 (c531a6e50 2024-01-22) I'm trying to build a NFT, so I use Wizzard for Cairo to get start. When I tried to compile the contract with
scarb build
. I got a error below:After I change
calldata.span()
intocalldata.into()
, the error was gone. The NFT's class hash is https://testnet.starkscan.co/class/0x07a029bdd6727af993c9d2432a5c353ffa8a08a2ef33249bd6dd33bf12ffe7edPR Checklist