diff --git a/service/src/main_impl.rs b/service/src/main_impl.rs index df713ec608..26a4732aa0 100644 --- a/service/src/main_impl.rs +++ b/service/src/main_impl.rs @@ -533,7 +533,7 @@ fn start_worker( }, None => { println!("We are the primary worker on this shard and the shard is untouched. Will initialize it"); - setup::init_shard(enclave.as_ref(), shard); + enclave.init_shard(shard.encode()).unwrap(); enclave .init_shard_creation_parentchain_header( shard,