Remove Option trickery from TxBuilder API

see: https://github.com/bitcoindevkit/bdk/pull/258#issuecomment-754685962
This commit is contained in:
LLFourn
2021-01-11 14:14:14 +11:00
parent 735db02850
commit 890d6191a1
6 changed files with 455 additions and 546 deletions

View File

@@ -156,10 +156,8 @@ mod test {
wallet.add_address_validator(Arc::new(TestValidator));
let addr = testutils!(@external descriptors, 10);
wallet
.build_tx()
.add_recipient(addr.script_pubkey(), 25_000)
.finish()
.unwrap();
let mut builder = wallet.build_tx();
builder.add_recipient(addr.script_pubkey(), 25_000);
builder.finish().unwrap();
}
}