File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -273,7 +273,8 @@ pub enum CreatePsbtError {
273273 /// Failed to create a spending plan for a manually selected output.
274274 Plan ( OutPoint ) ,
275275 /// Failed to create PSBT.
276- Psbt ( bdk_tx:: CreatePsbtError ) ,
276+ // TODO(@valuedmammal): `Box` shouldn't be needed once we can depend on `bdk_tx` 0.2.0.
277+ Psbt ( alloc:: boxed:: Box < bdk_tx:: CreatePsbtError > ) ,
277278 /// Selector error.
278279 Selector ( bdk_tx:: SelectorError ) ,
279280 /// The UTXO of outpoint could not be found.
Original file line number Diff line number Diff line change @@ -3062,7 +3062,7 @@ impl Wallet {
30623062 mandate_full_tx_for_segwit_v0 : !params. only_witness_utxo ,
30633063 sighash_type : params. sighash_type ,
30643064 } )
3065- . map_err ( CreatePsbtError :: Psbt ) ?;
3065+ . map_err ( |e| CreatePsbtError :: Psbt ( Box :: new ( e ) ) ) ?;
30663066
30673067 // Add global xpubs.
30683068 if params. add_global_xpubs {
You can’t perform that action at this time.
0 commit comments