Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Book: Starkli 101 uses deprecated code in the tutorial #113

Open
arad-starkware opened this issue Jan 26, 2025 · 0 comments
Open

Book: Starkli 101 uses deprecated code in the tutorial #113

arad-starkware opened this issue Jan 26, 2025 · 0 comments

Comments

@arad-starkware
Copy link

The src/lib.cairo specified in the tutorial no longer works on the current starknet version (2.9.2 as of writing this issue), and the version specified in the page is no longer available for downgrade.
Adding

    use starknet::storage::{
        StoragePointerReadAccess, StoragePointerWriteAccess,
    };

inside the my_contract module, and changing the decoration #[external(v0)] to #[abi(embed_v0)] fixes the issue for the current starknet version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant