| 59 | } |
| 60 | |
| 61 | static bool *fromwire_opt_bool(const tal_t *ctx, const u8 **cursor, size_t *len) |
| 62 | { |
| 63 | bool *v; |
| 64 | |
| 65 | if (!fromwire_bool(cursor, len)) |
| 66 | return NULL; |
| 67 | v = tal(ctx, bool); |
| 68 | *v = fromwire_bool(cursor, len); |
| 69 | return v; |
| 70 | } |
| 71 | |
| 72 | static const char *fromwire_opt_wirestring(const tal_t *ctx, |
| 73 | const u8 **cursor, size_t *len) |
no test coverage detected