diff --git a/sdk/src/types/block/output/mod.rs b/sdk/src/types/block/output/mod.rs index dde662812f..999245a7a4 100644 --- a/sdk/src/types/block/output/mod.rs +++ b/sdk/src/types/block/output/mod.rs @@ -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, - // min_committable_age: impl Into, - // max_committable_age: impl Into, - // output_id: &OutputId, - // account_transition: Option, - // ) -> Result<(Address, Option
), 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>,