| 2634 | } |
| 2635 | |
| 2636 | static bool json_to_msat_to_sat(const char *buffer, const jsmntok_t *tok, |
| 2637 | struct amount_sat *sat) |
| 2638 | { |
| 2639 | struct amount_msat msat; |
| 2640 | |
| 2641 | if (!json_to_msat(buffer, tok, &msat)) |
| 2642 | return false; |
| 2643 | return amount_msat_to_sat(sat, msat); |
| 2644 | } |
| 2645 | |
| 2646 | bool json_to_splice(const tal_t *ctx, const char *buffer, const jsmntok_t *tok, |
| 2647 | struct splice_script_result ***result) |
no test coverage detected