(client: &Client, id: String)
| 87 | } |
| 88 | |
| 89 | pub fn resume(client: &Client, id: String) -> Result<(), CliError> { |
| 90 | let thread_pubkey = Thread::pubkey(client.payer_pubkey(), id.into_bytes()); |
| 91 | let ix = Instruction { |
| 92 | program_id: clockwork_thread_program::ID, |
| 93 | accounts: clockwork_thread_program::accounts::ThreadResume { |
| 94 | authority: client.payer_pubkey(), |
| 95 | thread: thread_pubkey |
| 96 | }.to_account_metas(Some(false)), |
| 97 | data: clockwork_thread_program::instruction::ThreadResume {}.data(), |
| 98 | }; |
| 99 | client.send_and_confirm(&[ix], &[client.payer()]).unwrap(); |
| 100 | get(client, thread_pubkey)?; |
| 101 | Ok(()) |
| 102 | } |
| 103 | |
| 104 | pub fn reset(client: &Client, id: String) -> Result<(), CliError> { |
| 105 | let thread_pubkey = Thread::pubkey(client.payer_pubkey(), id.into_bytes()); |
no test coverage detected