diff --git a/src/util/psbt/error.rs b/src/util/psbt/error.rs index 4f566d78..b1fd7337 100644 --- a/src/util/psbt/error.rs +++ b/src/util/psbt/error.rs @@ -55,9 +55,9 @@ pub enum Error { /// transaction. UnexpectedUnsignedTx { /// Expected - expected: Transaction, + expected: Box, /// Actual - actual: Transaction, + actual: Box, }, /// Unable to parse as a standard SigHash type. NonStandardSigHashType(u32), diff --git a/src/util/psbt/map/global.rs b/src/util/psbt/map/global.rs index 6587943e..32e19e05 100644 --- a/src/util/psbt/map/global.rs +++ b/src/util/psbt/map/global.rs @@ -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), }); }