Skip to content

Commit 713dfb1

Browse files
andreisilviudragneaafalaleev
authored andcommitted
NDEV-2222: Revert env!(NEON_REVISION) initialization (#206)
1 parent 7b8af5d commit 713dfb1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

evm_loader/lib/src/commands/init_environment.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,16 +139,14 @@ pub async fn execute(
139139
let program_parameters = Parameters::new(read_elf_parameters(config, &data));
140140

141141
let neon_revision = program_parameters.get::<String>("NEON_REVISION")?;
142-
let build_neon_revision =
143-
build_info::format!("{}", $.version_control.unwrap().git().unwrap().commit_id);
144-
if neon_revision != build_neon_revision {
142+
if neon_revision != env!("NEON_REVISION") {
145143
if force {
146144
warn!("NeonEVM revision doesn't match CLI revision. This check has been disabled with `--force` flag");
147145
} else {
148146
error!("NeonEVM revision doesn't match CLI revision. Use appropriate neon-cli version or add `--force` flag");
149147
return Err(EnvironmentError::RevisionMismatch(
150148
neon_revision,
151-
build_neon_revision.to_string(),
149+
env!("NEON_REVISION").to_string(),
152150
)
153151
.into());
154152
}

0 commit comments

Comments
 (0)