Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Aug 21, 2023
1 parent 240f72e commit be96499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/src/types/block/semantic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl TryFrom<u8> for TransactionFailureReason {
8 => Self::InvalidNativeTokens,
9 => Self::StorageDepositReturnUnfulfilled,
10 => Self::InvalidUnlock,
11 => Self::InvalidInputsCommitments,
11 => Self::InvalidInputsCommitment,
12 => Self::SenderNotUnlocked,
13 => Self::InvalidChainStateTransition,
14 => Self::InvalidTransactionIssuingTime,
Expand Down Expand Up @@ -187,7 +187,7 @@ pub fn semantic_validation(
) -> Result<Option<TransactionFailureReason>, Error> {
// Validation of the inputs commitment.
if context.essence.inputs_commitment() != &context.inputs_commitment {
return Ok(Some(TransactionFailureReason::InvalidInputsCommitments));
return Ok(Some(TransactionFailureReason::InvalidInputsCommitment));
}

// Validation of inputs.
Expand Down

0 comments on commit be96499

Please sign in to comment.