File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
evm_loader/lib/src/commands Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments