Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Mar 5, 2024
1 parent 45f418a commit b61cf6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sdk/src/types/block/semantic/state_transition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -716,12 +716,11 @@ impl StateTransitionVerifier for DelegationOutput {
return Err(TransactionFailureReason::DelegationModified);
}

let protocol_parameters = &context.protocol_parameters;
let slot_commitment_id = context
.commitment_context_input
.ok_or(TransactionFailureReason::DelegationCommitmentInputMissing)?;

if next_state.end_epoch() != protocol_parameters.delegation_end_epoch(slot_commitment_id) {
if next_state.end_epoch() != context.protocol_parameters.delegation_end_epoch(slot_commitment_id) {
return Err(TransactionFailureReason::DelegationEndEpochInvalid);
}

Expand Down

0 comments on commit b61cf6e

Please sign in to comment.