From fad5e3cefdfec2e396928b8621e96407570b3fc4 Mon Sep 17 00:00:00 2001 From: thunderbiscuit Date: Wed, 22 Jun 2022 14:48:56 -0300 Subject: [PATCH] Fix comment for NetworkLocalUtxo trait --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fd2a7ed1..e33b516e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -190,7 +190,8 @@ pub struct LocalUtxo { is_spent: bool, } -/// Trait used to convert a script to an address using the wallet network +// This trait is used to convert the bdk TxOut type with field `script_pubkey: Script` +// into the bdk-ffi TxOut type which has a field `address: String` instead trait NetworkLocalUtxo { fn from_utxo(x: &bdk::LocalUtxo, network: Network) -> LocalUtxo; }