Skip to content

Commit

Permalink
[enclave-runtime] fix import dispatcher for TargetBSolochainHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Sep 8, 2023
1 parent 2ea161b commit 3b2cc62
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use crate::{
initialization::{
global_components::{
EnclaveExtrinsicsFactory, EnclaveNodeMetadataRepository, EnclaveOCallApi,
EnclaveStfExecutor, EnclaveValidatorAccessor, TargetAParentchainBlockImportDispatcher,
EnclaveStfExecutor, EnclaveValidatorAccessor, TargetBParentchainBlockImportDispatcher,
GLOBAL_OCALL_API_COMPONENT, GLOBAL_STATE_HANDLER_COMPONENT,
GLOBAL_TARGET_B_PARENTCHAIN_LIGHT_CLIENT_SEAL, GLOBAL_TARGET_B_PARENTCHAIN_NONCE_CACHE,
},
Expand All @@ -44,7 +44,7 @@ pub struct TargetBSolochainHandler {
pub stf_executor: Arc<EnclaveStfExecutor>,
pub validator_accessor: Arc<EnclaveValidatorAccessor>,
pub extrinsics_factory: Arc<EnclaveExtrinsicsFactory>,
pub import_dispatcher: Arc<TargetAParentchainBlockImportDispatcher>,
pub import_dispatcher: Arc<TargetBParentchainBlockImportDispatcher>,
}

impl TargetBSolochainHandler {
Expand Down Expand Up @@ -98,7 +98,7 @@ impl TargetBSolochainHandler {
WorkerMode::Sidechain =>
unimplemented!("Can't run target B chain in sidechain mode yet."),
WorkerMode::Teeracle =>
Arc::new(TargetAParentchainBlockImportDispatcher::new_empty_dispatcher()),
Arc::new(TargetBParentchainBlockImportDispatcher::new_empty_dispatcher()),
};

let solochain_handler = Self {
Expand Down

0 comments on commit 3b2cc62

Please sign in to comment.