Skip to content

Commit 68bdf3e

Browse files
authored
Fix replacement_outputs type in v2 WantsOutputs (payjoin#597)
This was missed in payjoin#529, the inner v1 type takes a IntoIterator and so should the v2 wrapper type.
2 parents 2e57272 + 26cb989 commit 68bdf3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

payjoin/src/receive/v2/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ impl WantsOutputs {
405405
/// receiver needs to pay for additional miner fees (e.g. in the case of adding many outputs).
406406
pub fn replace_receiver_outputs(
407407
self,
408-
replacement_outputs: impl Iterator<Item = TxOut>,
408+
replacement_outputs: impl IntoIterator<Item = TxOut>,
409409
drain_script: &Script,
410410
) -> Result<Self, OutputSubstitutionError> {
411411
let inner = self.v1.replace_receiver_outputs(replacement_outputs, drain_script)?;

0 commit comments

Comments
 (0)