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

Function handler

programs/thread/src/instructions/thread_reset.rs:24–34  ·  view source on GitHub ↗
(ctx: Context<ThreadReset>)

Source from the content-addressed store, hash-verified

22}
23
24pub fn handler(ctx: Context<ThreadReset>) -> Result<()> {
25 // Get accounts
26 let thread = &mut ctx.accounts.thread;
27
28 // Full reset the thread state.
29 thread.next_instruction = None;
30 thread.exec_context = None;
31 thread.created_at = Clock::get().unwrap().into();
32
33 Ok(())
34}

Callers

nothing calls this directly

Calls 1

getFunction · 0.50

Tested by

no test coverage detected