From 781b0e014aacba29f64c16775435c972b70d6b13 Mon Sep 17 00:00:00 2001 From: Riccardo Casatta Date: Wed, 18 Nov 2020 10:33:36 +0100 Subject: [PATCH] Box big Transaction type in psbt error --- src/util/psbt/error.rs | 4 ++-- src/util/psbt/map/global.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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), }); }