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

fn verify(idl: &Idl) in build.rs is not verifying accounts correctly #3500

Open
sirkuredda opened this issue Jan 20, 2025 · 0 comments
Open

Comments

@sirkuredda
Copy link

im importing in cargo:
raydium-clmm-cpi = { git = "https://github.com/raydium-io/raydium-cpi", package = "raydium-clmm-cpi", branch = "anchor-0.30.1" }
raydium-cpmm-cpi = { git = "https://github.com/raydium-io/raydium-cpi", package = "raydium-cpmm-cpi", branch = "anchor-0.30.1" }

and using in two different instruction those imports:

  1. use anchor_lang::prelude::*;
    use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface};
    use raydium_cpmm_cpi::{
    cpi,
    program::RaydiumCpmm,
    states::{
    AmmConfig as CpAmmConfig, ObservationState as CpObservationState, PoolState as CpPoolState,
    },
    };

  2. use raydium_clmm_cpi::{
    cpi,
    program::RaydiumClmm,
    states::{
    AmmConfig as ClmmConfig, ObservationState as ClmmObservationState,
    PoolState as ClmmPoolState,
    },
    };

Anchor gives me this error even if i have created aliases:
Error: Conflicting accounts names are not allowed.
Program: Test
Account: raydium_clmm_cpi::states::AmmConfig

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