Skip to content

Commit

Permalink
Use wrong tx failure reason
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Nov 30, 2023
1 parent 598e443 commit 1a5a917
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdk/src/types/block/output/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ impl BasicOutput {
&& (self.unlock_conditions().timelock().is_some() || self.unlock_conditions().expiration().is_some())
{
// Missing CommitmentContextInput
return Err(TransactionFailureReason::SemanticValidationFailed);
return Err(TransactionFailureReason::InvalidCommitmentContextInput);
}

self.unlock_conditions()
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/types/block/semantic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ impl<'a> SemanticValidationContext<'a> {
}
} else {
// Missing CommitmentContextInput
return Ok(Some(TransactionFailureReason::SemanticValidationFailed));
return Ok(Some(TransactionFailureReason::InvalidCommitmentContextInput));
}
}

Expand Down

0 comments on commit 1a5a917

Please sign in to comment.