(_ctx: Context<Hello>, name: String)
| 7 | use super::*; |
| 8 | |
| 9 | pub fn hello(_ctx: Context<Hello>, name: String) -> Result<()> { |
| 10 | msg!( |
| 11 | "Hello, {}! The current time is: {}", |
| 12 | name, |
| 13 | Clock::get().unwrap().unix_timestamp |
| 14 | ); |
| 15 | |
| 16 | Ok(()) |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | #[derive(Accounts)] |
nothing calls this directly
no outgoing calls
no test coverage detected