| 319 | } |
| 320 | |
| 321 | struct amount_asset bitcoin_tx_output_get_amount(const struct bitcoin_tx *tx, |
| 322 | int outnum) |
| 323 | { |
| 324 | assert(tx->chainparams); |
| 325 | assert(outnum < tx->wtx->num_outputs); |
| 326 | return wally_tx_output_get_amount(&tx->wtx->outputs[outnum]); |
| 327 | } |
| 328 | |
| 329 | struct amount_sat bitcoin_tx_output_get_amount_sat(const struct bitcoin_tx *tx, int outnum) |
| 330 | { |
no test coverage detected