Skip to content

Commit

Permalink
chore: added container name const
Browse files Browse the repository at this point in the history
  • Loading branch information
merklefruit committed Oct 29, 2023
1 parent 58a4cfe commit 9d60a97
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
5 changes: 0 additions & 5 deletions crates/primitives/src/monorepo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ impl Monorepo {
self.devnet().join("genesis-l1.json")
}

// /// Returns the L2 genesis file.
// pub fn l2_genesis(&self) -> PathBuf {
// self.devnet().join("genesis-l2.json")
// }

/// Contracts directory.
pub fn contracts(&self) -> PathBuf {
self.path().join("packages/contracts-bedrock")
Expand Down
4 changes: 3 additions & 1 deletion crates/stages/src/stages/l1_exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ pub struct Executor {
artifacts: Arc<Artifacts>,
}

const CONTAINER_NAME: &str = "opup-l1";

#[async_trait]
impl crate::Stage for Executor {
/// Executes the L1 Executor Stage.
Expand Down Expand Up @@ -103,7 +105,7 @@ impl Executor {

let container_id = self
.l1_exec
.create_container("opup-l1", config, true)
.create_container(CONTAINER_NAME, config, true)
.await?
.id;

Expand Down
4 changes: 3 additions & 1 deletion crates/stages/src/stages/l2_exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ pub struct Executor {
artifacts: Arc<Artifacts>,
}

const CONTAINER_NAME: &str = "opup-l2";

#[async_trait]
impl crate::Stage for Executor {
/// Executes the L2 Executor Stage.
Expand Down Expand Up @@ -97,7 +99,7 @@ impl Executor {

let container_id = self
.l2_exec
.create_container("opup-l2", config, true)
.create_container(CONTAINER_NAME, config, true)
.await?
.id;
tracing::info!(target: "stages", "l2 container created: {}", container_id);
Expand Down
4 changes: 3 additions & 1 deletion crates/stages/src/stages/rollup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ pub struct Rollup {
artifacts: Arc<Artifacts>,
}

const CONTAINER_NAME: &str = "opup-rollup";

#[async_trait]
impl crate::Stage for Rollup {
/// Executes the [Rollup] stage.
Expand Down Expand Up @@ -135,7 +137,7 @@ impl Rollup {

let container_id = self
.rollup_exec
.create_container("opup-rollup", config, true)
.create_container(CONTAINER_NAME, config, true)
.await?
.id;
tracing::info!(target: "stages", "rollup container created: {}", container_id);
Expand Down

0 comments on commit 9d60a97

Please sign in to comment.