Remove useless old code
@@ -10,7 +10,7 @@ use iota_client::{
},
block::{
input::{Input, UtxoInput},
- output::{unlock_condition::UnlockCondition, InputsCommitment, Output},
+ output::{InputsCommitment, Output},
payload::{
transaction::{RegularTransactionEssence, TransactionEssence},
Payload,
@@ -52,18 +52,6 @@ impl AccountHandle {
let mut essence_builder =
RegularTransactionEssence::builder(protocol_parameters.network_id(), inputs_commitment);
essence_builder = essence_builder.with_inputs(inputs_for_essence);
-
- for output in &selected_transaction_data.outputs {
- let mut address = None;
- if let Output::Basic(basic_output) = output {
- for unlock_condition in basic_output.unlock_conditions().iter() {
- if let UnlockCondition::Address(address_unlock_condition) = unlock_condition {
- address.replace(address_unlock_condition.address());
- break;
- }
- }
- }
- }
essence_builder = essence_builder.with_outputs(selected_transaction_data.outputs);
// Optional add a tagged payload
