Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "0.11.0"
version = "0.11.1"
edition = "2021"
rust-version = "1.85"
authors = ["init4"]
Expand Down
1 change: 0 additions & 1 deletion crates/constants/src/chains/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#[cfg(any(test, feature = "test-utils"))]
pub mod test_utils;

pub mod pecorino;
1 change: 0 additions & 1 deletion crates/constants/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]

mod chains;
#[cfg(any(test, feature = "test-utils"))]
pub use chains::test_utils;

pub use chains::pecorino;
Expand Down
2 changes: 0 additions & 2 deletions crates/constants/src/types/chains.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ pub enum KnownChains {
/// Pecorino chain.
Pecorino,
/// Test chain.
#[cfg(any(test, feature = "test-utils"))]
Test,
}

Expand All @@ -27,7 +26,6 @@ impl FromStr for KnownChains {
fn from_str(s: &str) -> Result<Self, Self::Err> {
let s = s.trim().to_lowercase();
match s.as_str() {
#[cfg(any(test, feature = "test-utils"))]
"test" => Ok(Self::Test),
"pecorino" => Ok(Self::Pecorino),
_ => Err(ParseChainError::ChainNotSupported(s)),
Expand Down
2 changes: 0 additions & 2 deletions crates/constants/src/types/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ impl SignetEnvironmentConstants {
}

/// Get the hard-coded local test rollup constants.
#[cfg(any(test, feature = "test-utils"))]
pub const fn test() -> Self {
crate::chains::test_utils::TEST_ENV
}
Expand All @@ -55,7 +54,6 @@ impl TryFrom<KnownChains> for SignetEnvironmentConstants {
fn try_from(chain: KnownChains) -> Result<Self, Self::Error> {
match chain {
KnownChains::Pecorino => Ok(Self::pecorino()),
#[cfg(any(test, feature = "test-utils"))]
KnownChains::Test => Ok(Self::test()),
}
}
Expand Down
2 changes: 0 additions & 2 deletions crates/constants/src/types/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ impl HostConstants {
}

/// Get the hard-coded local test host constants.
#[cfg(any(test, feature = "test-utils"))]
pub const fn test() -> Self {
crate::chains::test_utils::HOST
}
Expand Down Expand Up @@ -148,7 +147,6 @@ impl FromStr for HostConstants {
let chain: KnownChains = s.parse()?;
match chain {
KnownChains::Pecorino => Ok(Self::pecorino()),
#[cfg(any(test, feature = "test-utils"))]
KnownChains::Test => Ok(Self::test()),
}
}
Expand Down
4 changes: 0 additions & 4 deletions crates/constants/src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ impl SignetSystemConstants {
}

/// Get the hard-coded local test constants.
#[cfg(any(test, feature = "test-utils"))]
pub const fn test() -> Self {
crate::chains::test_utils::TEST_SYS
}
Expand Down Expand Up @@ -227,7 +226,6 @@ impl TryFrom<KnownChains> for SignetSystemConstants {
fn try_from(chain: KnownChains) -> Result<Self, Self::Error> {
match chain {
KnownChains::Pecorino => Ok(Self::pecorino()),
#[cfg(any(test, feature = "test-utils"))]
KnownChains::Test => Ok(Self::test()),
}
}
Expand Down Expand Up @@ -265,7 +263,6 @@ impl SignetConstants {
}

/// Get the hard-coded local test rollup constants.
#[cfg(any(test, feature = "test-utils"))]
pub const fn test() -> Self {
crate::chains::test_utils::TEST
}
Expand Down Expand Up @@ -297,7 +294,6 @@ impl TryFrom<KnownChains> for SignetConstants {
fn try_from(chain: KnownChains) -> Result<Self, Self::Error> {
match chain {
KnownChains::Pecorino => Ok(Self::pecorino()),
#[cfg(any(test, feature = "test-utils"))]
KnownChains::Test => Ok(Self::test()),
}
}
Expand Down
2 changes: 0 additions & 2 deletions crates/constants/src/types/rollup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ impl RollupConstants {
}

/// Get the hard-coded local test rollup constants.
#[cfg(any(test, feature = "test-utils"))]
pub const fn test() -> Self {
crate::chains::test_utils::ROLLUP
}
Expand Down Expand Up @@ -113,7 +112,6 @@ impl TryFrom<KnownChains> for RollupConstants {
fn try_from(chain: KnownChains) -> Result<Self, Self::Error> {
match chain {
KnownChains::Pecorino => Ok(Self::pecorino()),
#[cfg(any(test, feature = "test-utils"))]
KnownChains::Test => Ok(Self::test()),
}
}
Expand Down
Loading