(client: &Client, address: Pubkey)
| 65 | } |
| 66 | |
| 67 | pub fn get(client: &Client, address: Pubkey) -> Result<(), CliError> { |
| 68 | let data = client.get_account_data(&address).unwrap(); |
| 69 | let thread = VersionedThread::try_deserialize(&mut data.as_slice()).unwrap(); |
| 70 | println!("Address: {}\n{:#?}", address, thread); |
| 71 | Ok(()) |
| 72 | } |
| 73 | |
| 74 | pub fn pause(client: &Client, id: String) -> Result<(), CliError> { |
| 75 | let thread_pubkey = Thread::pubkey(client.payer_pubkey(), id.into_bytes()); |