| 249 | } |
| 250 | |
| 251 | static struct splice_script_result *input_wallet(struct splice_cmd *splice_cmd, |
| 252 | size_t *index) |
| 253 | { |
| 254 | for (size_t i = 0; i < tal_count(splice_cmd->actions); i++) { |
| 255 | struct splice_script_result *action = splice_cmd->actions[i]; |
| 256 | if (action->onchain_wallet |
| 257 | && !action->in_ppm |
| 258 | && amount_sat_is_zero(action->in_sat)) { |
| 259 | if (index) |
| 260 | *index = i; |
| 261 | return action; |
| 262 | } |
| 263 | } |
| 264 | return NULL; |
| 265 | } |
| 266 | |
| 267 | static struct splice_script_result *output_wallet(struct splice_cmd *splice_cmd) |
| 268 | { |
no test coverage detected