diff --git a/bitcoin/tx.c b/bitcoin/tx.c index 73a50ed26..2ea1b16f9 100644 --- a/bitcoin/tx.c +++ b/bitcoin/tx.c @@ -42,6 +42,7 @@ int bitcoin_tx_add_output(struct bitcoin_tx *tx, const u8 *script, } else { ret = wally_tx_output_init_alloc(satoshis, script, tal_bytelen(script), &output); + assert(ret == WALLY_OK); } ret = wally_tx_add_output(tx->wtx, output); assert(ret == WALLY_OK);