Use psbt::Error in PartiallySignedTransaction::from_unsigned_tx
This commit is contained in:
parent
1eeaccc92e
commit
0469453da6
|
@ -53,7 +53,7 @@ pub struct PartiallySignedTransaction {
|
|||
impl PartiallySignedTransaction {
|
||||
/// Create a PartiallySignedTransaction from an unsigned transaction, error
|
||||
/// if not unsigned
|
||||
pub fn from_unsigned_tx(tx: Transaction) -> Result<Self, encode::Error> {
|
||||
pub fn from_unsigned_tx(tx: Transaction) -> Result<Self, self::Error> {
|
||||
Ok(PartiallySignedTransaction {
|
||||
inputs: vec![Default::default(); tx.input.len()],
|
||||
outputs: vec![Default::default(); tx.output.len()],
|
||||
|
|
Loading…
Reference in New Issue