File tree 2 files changed +12
-1
lines changed
solana/programs/example-native-token-transfers/src
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ yargs(hideBin(process.argv))
66
66
const objectFile = "example_native_token_transfers.so" ;
67
67
const programId = "nttiK1SepaQt6sZ4WGW5whvc9tEnGXGxuKeptcQPCcS" ;
68
68
assertNetwork ( network ) ;
69
- await $ `cargo build-sbf --manifest-path=${ dir } /Cargo.toml --features "${ cargoNetworkFeature ( network ) } "`
69
+ await $ `cargo build-sbf --manifest-path=${ dir } /Cargo.toml --no-default-features -- features "${ cargoNetworkFeature ( network ) } "`
70
70
await $ `solana program deploy --program-id ${ programId } ${ dir } /target/deploy/${ objectFile } --keypair ${ keypair } -u ${ solanaMoniker ( network ) } `
71
71
} )
72
72
. demandCommand ( )
Original file line number Diff line number Diff line change 1
1
use anchor_lang:: prelude:: * ;
2
2
3
+ // TODO: is there a more elegant way of checking that these 3 features are mutually exclusive?
4
+
5
+ #[ cfg( all( feature = "mainnet" , feature = "solana-devnet" ) ) ]
6
+ compile_error ! ( "Cannot enable both mainnet and solana-devnet features at the same time" ) ;
7
+
8
+ #[ cfg( all( feature = "mainnet" , feature = "tilt-devnet" ) ) ]
9
+ compile_error ! ( "Cannot enable both mainnet and tilt-devnet features at the same time" ) ;
10
+
11
+ #[ cfg( all( feature = "solana-devnet" , feature = "tilt-devnet" ) ) ]
12
+ compile_error ! ( "Cannot enable both solana-devnet and tilt-devnet features at the same time" ) ;
13
+
3
14
pub mod bitmap;
4
15
pub mod clock;
5
16
pub mod config;
You can’t perform that action at this time.
0 commit comments