You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and using in two different instruction those imports:
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,
},
};
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
The text was updated successfully, but these errors were encountered:
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:
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,
},
};
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
The text was updated successfully, but these errors were encountered: