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

Function parse_pubkey

cli/src/parser.rs:320–323  ·  view source on GitHub ↗
(arg: &str, matches: &ArgMatches)

Source from the content-addressed store, hash-verified

318}
319
320fn parse_pubkey(arg: &str, matches: &ArgMatches) -> Result<Pubkey, CliError> {
321 Ok(Pubkey::from_str(parse_string(arg, matches)?.as_str())
322 .map_err(|_err| CliError::BadParameter(arg.into()))?)
323}
324
325fn parse_string(arg: &str, matches: &ArgMatches) -> Result<String, CliError> {
326 Ok(matches

Callers 6

parse_config_commandFunction · 0.85
parse_explorer_commandFunction · 0.85
parse_initialize_commandFunction · 0.85
parse_secret_commandFunction · 0.85
parse_thread_commandFunction · 0.85
parse_triggerFunction · 0.85

Calls 1

parse_stringFunction · 0.85

Tested by

no test coverage detected