Replace #[external(v0)]
with #[abi(embed_v0)]
to fix deprecation warning
#1334
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: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