MCPcopy Create free account
hub / github.com/ElementsProject/lightning / param_u32

Function param_u32

common/json_param.c:488–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488struct command_result *param_u32(struct command *cmd, const char *name,
489 const char *buffer, const jsmntok_t *tok,
490 uint32_t **num)
491{
492 *num = tal(cmd, uint32_t);
493 if (json_to_u32(buffer, tok, *num))
494 return NULL;
495
496 return command_fail_badparam(cmd, name, buffer, tok,
497 "should be an unsigned 32 bit integer");
498}
499
500struct command_result *param_u64(struct command *cmd, const char *name,
501 const char *buffer, const jsmntok_t *tok,

Callers

nothing calls this directly

Calls 2

command_fail_badparamFunction · 0.85
json_to_u32Function · 0.70

Tested by

no test coverage detected