MCPcopy Create free account
hub / github.com/BitVM/BitVM / for_tx

Method for_tx

bridge/src/error.rs:24–30  ·  view source on GitHub ↗
(tx: &(impl BaseTransaction + PreSignedTransaction), confirmed: bool)

Source from the content-addressed store, hash-verified

22
23impl 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)]

Callers

nothing calls this directly

Calls 2

txMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected