Skip to content

Commit

Permalink
Remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Nov 14, 2023
1 parent 2342073 commit a1e69da
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions sdk/src/types/block/output/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -293,29 +293,6 @@ impl Output {
}
}

// /// Returns the address that is required to unlock this [`Output`] and the account or nft address that gets
// /// unlocked by it, if it's an account or nft.
// /// If no `account_transition` has been provided, assumes a state transition.
// pub fn required_and_unlocked_address(
// &self,
// slot_index: impl Into<SlotIndex>,
// min_committable_age: impl Into<SlotIndex>,
// max_committable_age: impl Into<SlotIndex>,
// output_id: &OutputId,
// account_transition: Option<AccountTransition>,
// ) -> Result<(Address, Option<Address>), Error> { match self { Self::Basic(output) => Ok(( *output
// .unlock_conditions() .locked_address(output.address(), slot_index, min_committable_age, max_committable_age) //
// TODO .unwrap(), None, )), Self::Account(output) => { if account_transition.unwrap_or(AccountTransition::State)
// == AccountTransition::State { // Account address is only unlocked if it's a state transition Ok((
// *output.state_controller_address(), Some(Address::Account(output.account_address(output_id))), )) } else {
// Ok((*output.governor_address(), None)) } } Self::Foundry(output) =>
// Ok((Address::Account(*output.account_address()), None)), Self::Nft(output) => Ok(( *output .unlock_conditions()
// .locked_address(output.address(), slot_index, min_committable_age, max_committable_age) // TODO .unwrap(),
// Some(Address::Nft(output.nft_address(output_id))), )), Self::Delegation(output) => Ok(( *output
// .unlock_conditions() .locked_address(output.address(), slot_index, min_committable_age, max_committable_age) //
// TODO .unwrap(), None, )), }
// }

///
pub fn verify_state_transition(
current_state: Option<&Self>,
Expand Down

0 comments on commit a1e69da

Please sign in to comment.