Use psbt::Error in PartiallySignedTransaction::from_unsigned_tx

This commit is contained in:
Steven Roose 2019-09-09 11:40:23 +01:00
parent 1eeaccc92e
commit 0469453da6
No known key found for this signature in database
GPG Key ID: 2F2A88D7F8D68E87
1 changed files with 1 additions and 1 deletions

View File

@ -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()],