diff --git a/pop-api/examples/fungibles/Cargo.toml b/pop-api/examples/fungibles/Cargo.toml index 1882a8792..db2f42ba1 100644 --- a/pop-api/examples/fungibles/Cargo.toml +++ b/pop-api/examples/fungibles/Cargo.toml @@ -26,9 +26,11 @@ path = "lib.rs" [features] default = [ "std" ] +devnet = [ ] e2e-tests = [ ] ink-as-dependency = [ ] std = [ "ink/std", "pop-api/std", ] +testnet = [ ] diff --git a/pop-api/examples/fungibles/tests.rs b/pop-api/examples/fungibles/tests.rs index fee1204e6..feb5f87f9 100644 --- a/pop-api/examples/fungibles/tests.rs +++ b/pop-api/examples/fungibles/tests.rs @@ -1,17 +1,26 @@ -use drink::{ - assert_err, assert_last_contract_event, assert_ok, call, - devnet::{ - account_id_from_slice, - error::{ - v0::{ApiError::*, ArithmeticError::*, Error}, - Assets, - AssetsError::*, - }, - AccountId, Balance, Runtime, +#[cfg(feature = "devnet")] +use drink::devnet::{ + account_id_from_slice, + error::{ + v0::{ApiError::*, ArithmeticError::*, Error}, + Assets, + AssetsError::*, + }, + AccountId, Balance, Runtime, +}; +#[cfg(feature = "testnet")] +use drink::testnet::{ + account_id_from_slice, + error::{ + v0::{ApiError::*, ArithmeticError::*, Error}, + Assets, + AssetsError::*, }, - last_contract_event, - session::Session, - AssetsAPI, TestExternalities, NO_SALT, + AccountId, Balance, Runtime, +}; +use drink::{ + assert_err, assert_ok, call, last_contract_event, session::Session, AssetsAPI, + TestExternalities, NO_SALT, }; use ink::scale::Encode; use pop_api::{ @@ -33,7 +42,7 @@ const TOKEN: TokenId = 1; // The contract bundle provider. // -// See https://github.com/r0gue-io/pop-drink/blob/main/crates/drink/drink/test-macro/src/lib.rs for more information. +// See https://github.com/r0gue-io/pop-drink/blob/main/drink/test-macro/src/lib.rs for more information. #[drink::contract_bundle_provider] enum BundleProvider {}