Skip to content

bump used anchor & solana versions#641

Draft
evgeniko wants to merge 14 commits intomainfrom
bump_anchor_v.31.1
Draft

bump used anchor & solana versions#641
evgeniko wants to merge 14 commits intomainfrom
bump_anchor_v.31.1

Conversation

@evgeniko
Copy link
Contributor

No description provided.

@aadam-10 aadam-10 marked this pull request as draft June 30, 2025 15:18
@nvsriram
Copy link
Contributor

nvsriram commented Jul 4, 2025

With the current commit (9580d20), building without IDL (make cargo-build/anchor build --no-idl) and unit tests (make cargo-test) succeed.
However, when trying to build with IDL (make build/anchor build), even program-wise (anchor build -p <program-name>), it fails with the following error:

error[E0119]: conflicting implementations of trait `anchor_lang::IdlBuild` for type `BridgeData`
   --> /.../.cargo/git/checkouts/wormhole-scaffolding-eb84e1198addfbcb/3be80a9/solana/modules/wormhole-anchor-sdk/src/wormhole/accounts.rs:5:26
    |
5   | #[derive(Debug, Default, AnchorSerialize, AnchorDeserialize, Clone, PartialEq, Eq)]
    |                          ^^^^^^^^^^^^^^^ conflicting implementation for `BridgeData`
...
295 | impl IdlBuild for BridgeData {}
    | ---------------------------- first implementation here
    |
    = note: this error originates in the derive macro `AnchorSerialize` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0119`.
error: could not compile `wormhole-anchor-sdk` (lib) due to 1 previous error
Error: Building IDL failed. Run `ANCHOR_LOG=true anchor idl build` to see the logs.

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.

2 participants