(client: &Client, id: String)
| 102 | } |
| 103 | |
| 104 | pub fn reset(client: &Client, id: String) -> Result<(), CliError> { |
| 105 | let thread_pubkey = Thread::pubkey(client.payer_pubkey(), id.into_bytes()); |
| 106 | let ix = Instruction { |
| 107 | program_id: clockwork_thread_program::ID, |
| 108 | accounts: clockwork_thread_program::accounts::ThreadReset { |
| 109 | authority: client.payer_pubkey(), |
| 110 | thread: thread_pubkey |
| 111 | }.to_account_metas(Some(false)), |
| 112 | data: clockwork_thread_program::instruction::ThreadReset {}.data(), |
| 113 | }; |
| 114 | client.send_and_confirm(&[ix], &[client.payer()]).unwrap(); |
| 115 | get(client, thread_pubkey)?; |
| 116 | Ok(()) |
| 117 | } |
| 118 | |
| 119 | pub fn update( |
| 120 | client: &Client, |
no test coverage detected