(tx: &(impl BaseTransaction + PreSignedTransaction), confirmed: bool)
| 22 | |
| 23 | impl NamedTx { |
| 24 | pub fn for_tx(tx: &(impl BaseTransaction + PreSignedTransaction), confirmed: bool) -> Self { |
| 25 | Self { |
| 26 | txid: tx.tx().compute_txid(), |
| 27 | name: tx.name(), |
| 28 | confirmed, |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | #[derive(Debug)] |