(thread: T, config: CliConfig)
| 5 | }; |
| 6 | |
| 7 | pub fn thread_url<T: std::fmt::Display>(thread: T, config: CliConfig) -> Result<(), |
| 8 | CliError> { |
| 9 | println!("thread: {}", explorer(config).thread_url(thread, clockwork_thread_program::ID)); |
| 10 | Ok(()) |
| 11 | } |
| 12 | |
| 13 | fn explorer(config: CliConfig) -> Explorer { |
| 14 | Explorer::from(config.json_rpc_url) |