diff --git a/Cargo.lock b/Cargo.lock index 454e7f25f..3a4d83746 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "Inflector" diff --git a/applications/tari_dan_app_utilities/src/transaction_executor.rs b/applications/tari_dan_app_utilities/src/transaction_executor.rs index f634ea63d..b3e257e7b 100644 --- a/applications/tari_dan_app_utilities/src/transaction_executor.rs +++ b/applications/tari_dan_app_utilities/src/transaction_executor.rs @@ -4,7 +4,6 @@ use std::sync::Arc; use log::*; -use tari_common::configuration::Network; use tari_common_types::types::PublicKey; use tari_crypto::tari_utilities::ByteArray; use tari_dan_common_types::{ @@ -18,7 +17,7 @@ use tari_dan_engine::{ runtime::{AuthParams, RuntimeModule}, state_store::{memory::ReadOnlyMemoryStateStore, StateStoreError}, template::LoadedTemplate, - transaction::{TransactionError, TransactionProcessor}, + transaction::{TransactionError, TransactionProcessor, TransactionProcessorConfig}, }; use tari_dan_storage::consensus_models::VersionedSubstateIdLockIntent; use tari_engine_types::{commit_result::ExecuteResult, substate::Substate, virtual_substate::VirtualSubstates}; @@ -89,15 +88,15 @@ impl ExecutionOutput { pub struct TariDanTransactionProcessor { template_provider: Arc, fee_table: FeeTable, - network: Network, + config: TransactionProcessorConfig, } impl TariDanTransactionProcessor { - pub fn new(network: Network, template_provider: TTemplateProvider, fee_table: FeeTable) -> Self { + pub fn new(config: TransactionProcessorConfig, template_provider: TTemplateProvider, fee_table: FeeTable) -> Self { Self { template_provider: Arc::new(template_provider), fee_table, - network, + config, } } } @@ -128,12 +127,12 @@ where TTemplateProvider: TemplateProvider