|
@@ -1,3 +1,5 @@
|
|
|
|
+#![allow(unused_variables)]
|
|
|
|
+
|
|
use anchor_lang::prelude::*;
|
|
use anchor_lang::prelude::*;
|
|
|
|
|
|
declare_id!("Externa111111111111111111111111111111111111");
|
|
declare_id!("Externa111111111111111111111111111111111111");
|
|
@@ -46,6 +48,14 @@ pub mod external {
|
|
Ok(true)
|
|
Ok(true)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // Compilation test for whether `data` can be used as an instruction parameter name
|
|
|
|
+ pub fn test_compilation_data_as_parameter_name(
|
|
|
|
+ _ctx: Context<TestCompilation>,
|
|
|
|
+ data: Vec<u8>,
|
|
|
|
+ ) -> Result<()> {
|
|
|
|
+ Ok(())
|
|
|
|
+ }
|
|
|
|
+
|
|
// Compilation test for an instruction with no accounts
|
|
// Compilation test for an instruction with no accounts
|
|
pub fn test_compilation_no_accounts(_ctx: Context<TestCompilationNoAccounts>) -> Result<()> {
|
|
pub fn test_compilation_no_accounts(_ctx: Context<TestCompilationNoAccounts>) -> Result<()> {
|
|
Ok(())
|
|
Ok(())
|