From 1a5a917541c625aa05394e077e115a495a0e6e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Thu, 30 Nov 2023 17:52:18 +0100 Subject: [PATCH] Use wrong tx failure reason --- sdk/src/types/block/output/basic.rs | 2 +- sdk/src/types/block/semantic.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/src/types/block/output/basic.rs b/sdk/src/types/block/output/basic.rs index c372efce17..9bb8e313ff 100644 --- a/sdk/src/types/block/output/basic.rs +++ b/sdk/src/types/block/output/basic.rs @@ -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() diff --git a/sdk/src/types/block/semantic.rs b/sdk/src/types/block/semantic.rs index 7ca5dad83a..45475d1bf6 100644 --- a/sdk/src/types/block/semantic.rs +++ b/sdk/src/types/block/semantic.rs @@ -324,7 +324,7 @@ impl<'a> SemanticValidationContext<'a> { } } else { // Missing CommitmentContextInput - return Ok(Some(TransactionFailureReason::SemanticValidationFailed)); + return Ok(Some(TransactionFailureReason::InvalidCommitmentContextInput)); } }