]> Untitled Git - bdk/commitdiff
Apply typo fixes from @tcharding
authorLloyd Fournier <LLFourn@users.noreply.github.com>
Thu, 11 Feb 2021 23:20:11 +0000 (10:20 +1100)
committerLLFourn <lloyd.fourn@gmail.com>
Fri, 26 Feb 2021 02:33:52 +0000 (13:33 +1100)
Co-authored-by: Tobin C. Harding <me@tobin.cc>
src/wallet/mod.rs
src/wallet/tx_builder.rs

index d2b1e0c890c58e05f76516806669b208e07e59c3..299eeb9f0227e9e89ddacfd21d97967633e94bfa 100644 (file)
@@ -2380,7 +2380,7 @@ mod test {
             builder
                 .add_foreign_utxo(utxo2.outpoint, psbt_input2, satisfaction_weight)
                 .is_ok(),
-            "shoulld be ok when outpoing does match psbt_input"
+            "shoulld be ok when outpoint does match psbt_input"
         );
     }
 
index bd9181eed50e4a838d85cdc09cca9a991b929ac1..04f111397e73c3150f8434042d182437f6a8c26f 100644 (file)
@@ -314,7 +314,7 @@ impl<'a, B, D: BatchDatabase, Cs: CoinSelectionAlgorithm<D>, Ctx: TxBuilderConte
         self.add_utxos(&[outpoint])
     }
 
-    /// Add a foreign UTXO i.e. A UTXO not owned by this wallet.
+    /// Add a foreign UTXO i.e. a UTXO not owned by this wallet.
     ///
     /// At a minimum to add a foreign UTXO we need:
     ///
@@ -325,7 +325,7 @@ impl<'a, B, D: BatchDatabase, Cs: CoinSelectionAlgorithm<D>, Ctx: TxBuilderConte
     /// There are several security concerns about adding foregin UTXOs that application
     /// developers should consider. First, how do you know the value of the input is correct? If a
     /// `non_witness_utxo` is provided in the `psbt_input` then this method implicitly verifies the
-    /// value by checking it against the transaction. If only a `wintess_utxo` is provided then this
+    /// value by checking it against the transaction. If only a `witness_utxo` is provided then this
     /// method doesn't verify the value but just takes it as a given -- it is up to you to check
     /// that whoever sent you the `input_psbt` was not lying!
     ///