Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Thoralf-M committed Jan 12, 2024
1 parent e9ee9e6 commit 2b1d7b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sdk/src/client/secret/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ use crate::{
client::{
api::{
input_selection::Error as InputSelectionError, transaction::validate_signed_transaction_payload_length,
PreparedTransactionData,
verify_semantic, PreparedTransactionData,
},
Error,
},
Expand Down
10 changes: 3 additions & 7 deletions sdk/src/types/block/output/delegation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::types::block::{
},
protocol::{ProtocolParameters, WorkScore, WorkScoreParameters},
semantic::StateTransitionError,
slot::EpochIndex,
slot::{EpochIndex, SlotIndex},
Error,
};

Expand All @@ -38,11 +38,7 @@ impl From<&OutputId> for DelegationId {

impl DelegationId {
pub fn or_from_output_id(self, output_id: &OutputId) -> Self {
if self.is_null() {
Self::from(output_id)
} else {
self
}
if self.is_null() { Self::from(output_id) } else { self }
}
}

Expand Down Expand Up @@ -348,7 +344,7 @@ impl DelegationOutput {
let slot_commitment_id = context_inputs
.iter()
.find(|i| i.kind() == CommitmentContextInput::KIND)
.map(|s| s.as_commitment().commitment_id())
.map(|s| s.as_commitment().slot_commitment_id())
.ok_or(StateTransitionError::MissingCommitmentContextInput)?;

let future_bounded_slot: SlotIndex = slot_commitment_id.slot_index() + protocol_parameters.min_committable_age;
Expand Down

0 comments on commit 2b1d7b0

Please sign in to comment.