Skip to content

Commit 780f1b5

Browse files
committed
fix: modify satisfiedcontraint to remove lifetimes
1 parent 4c5b123 commit 780f1b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interpreter/stack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,9 +402,9 @@ impl<'txin> Stack<'txin> {
402402
&mut self,
403403
given: &sha256::Hash,
404404
expected: &'intp sha256::Hash,
405-
) -> Option<Result<SatisfiedConstraint<'intp, 'txin>, Error>> {
405+
) -> Option<Result<SatisfiedConstraint, Error>> {
406406
Some(if *given == *expected {
407-
Ok(SatisfiedConstraint::TxTemplate { hash: expected })
407+
Ok(SatisfiedConstraint::TxTemplate { hash: *expected })
408408
} else {
409409
Err(Error::TxTemplateHashWrong)
410410
})

0 commit comments

Comments
 (0)