]> Untitled Git - bdk/commitdiff
Remove stale comments
authorTobin Harding <me@tobin.cc>
Tue, 11 May 2021 03:29:22 +0000 (13:29 +1000)
committerTobin Harding <me@tobin.cc>
Tue, 11 May 2021 03:29:22 +0000 (13:29 +1000)
The two fields this comment references are not `Option` type. This
comment seems to be stale.

src/wallet/tx_builder.rs

index 3d59c5a31672ac9fe20884f6c8c77a42359e7024..f7eb6c591584264fe73fe8df7261448639e367a0 100644 (file)
@@ -119,9 +119,6 @@ impl TxBuilderContext for BumpFee {}
 #[derive(Debug)]
 pub struct TxBuilder<'a, B, D, Cs, Ctx> {
     pub(crate) wallet: &'a Wallet<B, D>,
-    // params and coin_selection are Options not becasue they are optionally set (they are always
-    // there) but because `.finish()` uses `Option::take` to get an owned value from a &mut self.
-    // They are only `None` after `.finish()` is called.
     pub(crate) params: TxParams,
     pub(crate) coin_selection: Cs,
     pub(crate) phantom: PhantomData<Ctx>,