Box big Transaction type in psbt error
This commit is contained in:
parent
9b2098517e
commit
781b0e014a
|
@ -55,9 +55,9 @@ pub enum Error {
|
|||
/// transaction.
|
||||
UnexpectedUnsignedTx {
|
||||
/// Expected
|
||||
expected: Transaction,
|
||||
expected: Box<Transaction>,
|
||||
/// Actual
|
||||
actual: Transaction,
|
||||
actual: Box<Transaction>,
|
||||
},
|
||||
/// Unable to parse as a standard SigHash type.
|
||||
NonStandardSigHashType(u32),
|
||||
|
|
|
@ -169,8 +169,8 @@ impl Map for Global {
|
|||
fn merge(&mut self, other: Self) -> Result<(), psbt::Error> {
|
||||
if self.unsigned_tx != other.unsigned_tx {
|
||||
return Err(psbt::Error::UnexpectedUnsignedTx {
|
||||
expected: self.unsigned_tx.clone(),
|
||||
actual: other.unsigned_tx,
|
||||
expected: Box::new(self.unsigned_tx.clone()),
|
||||
actual: Box::new(other.unsigned_tx),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue