| 347 | } |
| 348 | |
| 349 | void psbt_elements_input_set_asset(struct wally_psbt *psbt, size_t in, |
| 350 | struct amount_asset *asset) |
| 351 | { |
| 352 | tal_wally_start(); |
| 353 | |
| 354 | if (asset->value > 0) |
| 355 | if (wally_psbt_input_set_value(&psbt->inputs[in], |
| 356 | asset->value) != WALLY_OK) |
| 357 | abort(); |
| 358 | |
| 359 | /* PSET expects an asset tag without the prefix */ |
| 360 | if (wally_psbt_input_set_asset(&psbt->inputs[in], |
| 361 | asset->asset + 1, |
| 362 | ELEMENTS_ASSET_LEN - 1) != WALLY_OK) |
| 363 | abort(); |
| 364 | tal_wally_end(psbt); |
| 365 | } |
| 366 | |
| 367 | void psbt_elements_normalize_fees(struct wally_psbt *psbt) |
| 368 | { |
no test coverage detected