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

Replace #[external(v0)] with #[abi(embed_v0)] to fix deprecation warning #1334

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Himess
Copy link

@Himess Himess commented Feb 28, 2025

Motivation and Resolution

The #[external(v0)] attribute has been deprecated in favor of #[abi(embed_v0)] or #[abi(per_item)], as indicated by the following warning during compilation:

Pasted Graphic

Usage related changes

Users no longer see the deprecation warning related to #[external(v0)] during compilation.
Contracts now use #[abi(embed_v0)] as per the latest Cairo/Starknet standards.

Development related changes

Removed deprecated #[external(v0)] and replaced it with #[abi(embed_v0)].
Ensured that all modified files still compile successfully with scarb build.
Verified that no additional errors or warnings appear.
Confirmed that this change aligns with similar updates in the repository.

Test Result

hinesseSenih-MacBook-Air test virgul   scarb build

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

Successfully merging this pull request may close these issues.

1 participant