diff --git a/core/src/execution/mod.rs b/core/src/execution/mod.rs index e4bf7887..17cca3ed 100644 --- a/core/src/execution/mod.rs +++ b/core/src/execution/mod.rs @@ -7,7 +7,6 @@ use alloy::rpc::types::{Filter, Log}; use eyre::Result; use futures::future::join_all; use revm::primitives::KECCAK_EMPTY; -use std::env; use triehash_ethereum::ordered_trie_root; use crate::network_spec::NetworkSpec; @@ -178,8 +177,8 @@ impl> ExecutionClient { } pub async fn get_client_version(&self) -> Result { - let helios_version = env::var("CARGO_PKG_VERSION"); - Ok(format!("helios-{}", helios_version.unwrap())) + let helios_version = std::env!("CARGO_PKG_VERSION"); + Ok(format!("helios-{}", helios_version)) } pub async fn get_transaction_receipt(