From e15a2f0ee02221493d8e9c1172f3bc55a23cdcfe Mon Sep 17 00:00:00 2001 From: mw2000 Date: Wed, 30 Oct 2024 11:27:19 -0700 Subject: [PATCH] fix: environment var now fetched at compile time --- core/src/execution/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(