Skip to content

Commit 157de0c

Browse files
authored
fix(FromEnv): impl FromEnvVar for SlotCalculator (#68)
This was missing to allow adding the calculator from an env var.
1 parent 4c95d02 commit 157de0c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils/from_env.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use signet_constants::{
55
use std::{convert::Infallible, env::VarError, num::ParseIntError, str::FromStr};
66
use tracing_core::metadata::ParseLevelError;
77

8+
use crate::utils::calc::SlotCalculator;
89
/// The `derive(FromEnv)` macro.
910
///
1011
/// This macro generates a [`FromEnv`] implementation for the struct it is
@@ -618,7 +619,8 @@ impl_for_parseable!(
618619
SignetEnvironmentConstants,
619620
SignetSystemConstants,
620621
HostConstants,
621-
RollupConstants
622+
RollupConstants,
623+
SlotCalculator
622624
);
623625

624626
#[cfg(feature = "alloy")]

0 commit comments

Comments
 (0)