Guillermo Bescos 2 jaren geleden
bovenliggende
commit
0c6b82a306

+ 9 - 5
governance/remote_executor/programs/remote-executor/src/tests/executor_simulator.rs

@@ -31,7 +31,6 @@ use {
         ToAccountMetas,
     },
     solana_program_test::{
-        find_file,
         read_file,
         BanksClient,
         BanksClientError,
@@ -54,7 +53,10 @@ use {
             TransactionError,
         },
     },
-    std::collections::HashMap,
+    std::{
+        collections::HashMap,
+        path::Path,
+    },
     wormhole::Chain,
     wormhole_solana::VAA,
 };
@@ -81,9 +83,11 @@ pub enum VaaAttack {
 impl ExecutorBench {
     /// Deploys the executor program as upgradable
     pub fn new() -> ExecutorBench {
-        let mut bpf_data = read_file(find_file("remote_executor.so").unwrap_or_else(|| {
-            panic!("Unable to locate {}", "remote_executor.so");
-        }));
+        let mut bpf_data = read_file(
+            std::env::current_dir()
+                .unwrap()
+                .join(Path::new("../../target/deploy/remote_executor.so")),
+        );
 
         let mut program_test = ProgramTest::default();
         let program_key = crate::id();

+ 2 - 0
governance/remote_executor/rust-toolchain.toml

@@ -0,0 +1,2 @@
+[toolchain]
+channel = "1.66.1"