Compare commits

...

2 Commits

Author SHA1 Message Date
Mike MacCana c09efedfa3
Merge 748913f00b into 499e1e67c6 2024-04-27 18:18:27 +02:00
Mike MacCana 499e1e67c6
cli: Fix unused variable warning on new projects (#2930) 2024-04-27 18:03:21 +02:00
1 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ pub mod {} {{
use super::*;
pub fn initialize(ctx: Context<Initialize>) -> Result<()> {{
msg!("Greetings from: {{:?}}", ctx.program_id);
Ok(())
}}
}}
@ -145,6 +146,7 @@ pub use initialize::*;
pub struct Initialize {}
pub fn handler(ctx: Context<Initialize>) -> Result<()> {
msg!("Greetings from: {{:?}}", ctx.program_id);
Ok(())
}
"#