Skip to content

Commit

Permalink
fix: environment var now fetched at compile time
Browse files Browse the repository at this point in the history
  • Loading branch information
mw2000 committed Oct 30, 2024
1 parent bbc96bd commit e15a2f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/src/execution/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -178,8 +177,8 @@ impl<N: NetworkSpec, R: ExecutionRpc<N>> ExecutionClient<N, R> {
}

pub async fn get_client_version(&self) -> Result<String> {
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(
Expand Down

0 comments on commit e15a2f0

Please sign in to comment.