spl: Add devnet feature flag for dex (#263)

This commit is contained in:
bonedaddy 2021-05-07 23:00:20 -07:00 committed by GitHub
parent 451e99418f
commit c06ad679d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,9 @@ edition = "2018"
license = "Apache-2.0"
description = "CPI clients for SPL programs"
[features]
devnet = []
[dependencies]
anchor-lang = { path = "../lang", version = "0.5.0", features = ["derive"] }
lazy_static = "1.4.0"

View File

@ -7,8 +7,12 @@ use std::num::NonZeroU64;
pub use serum_dex;
#[cfg(not(feature = "devnet"))]
anchor_lang::solana_program::declare_id!("9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin");
#[cfg(feature = "devnet")]
anchor_lang::solana_program::declare_id!("DESVgJVGajEgKGXhb6XmqDHGz3VjdgP7rEVESBgxmroY");
pub fn new_order_v3<'info>(
ctx: CpiContext<'_, '_, '_, 'info, NewOrderV3<'info>>,
side: Side,