MCPcopy Create free account
hub / github.com/clockwork-xyz/examples / hello

Function hello

hello_clockwork/programs/hello_clockwork/src/lib.rs:9–17  ·  view source on GitHub ↗
(_ctx: Context<Hello>, name: String)

Source from the content-addressed store, hash-verified

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)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected