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

Fixed anchor build not working. #1

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

Conversation

dandamiangow3t
Copy link

@dandamiangow3t dandamiangow3t commented May 31, 2024

Fixed anchor build who was failing with various errors due to spl-token-2022 dependency, as two conflicting versions were required by the resolver, respectively v0.5.0 and v0.6.1;

Here is the first two errors showing up, leaving it here as a reference:

error[E0412]: cannot find type `CloseAccountData` in this scope
   --> src/extension/confidential_transfer/instruction.rs:688:18
    |
688 |     proof_data: &CloseAccountData,
    |                  ^^^^^^^^^^^^^^^^ not found in this scope

error[E0412]: cannot find type `WithdrawWithheldTokensData` in this scope
    --> src/extension/confidential_transfer/instruction.rs:1086:18
     |
497  | pub struct WithdrawWithheldTokensFromMintData {
     | --------------------------------------------- similarly named struct `WithdrawWithheldTokensFromMintData` defined here

After various tryings it really came down to upgrading both anchor-lang and anchor-spl to v0.28.0.

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