feat: install foundry binaries into run.Dockerfile
This commit is contained in:
@@ -4,6 +4,7 @@ use std::{
|
||||
};
|
||||
|
||||
use miette::{miette, IntoDiagnostic, WrapErr};
|
||||
use tracing::{debug, info};
|
||||
|
||||
pub struct AdapterContractBuilder {
|
||||
src_path: String,
|
||||
@@ -65,14 +66,14 @@ impl AdapterContractBuilder {
|
||||
.into_diagnostic()
|
||||
.wrap_err(miette!("Error running '{script_path}'"))?;
|
||||
|
||||
println!("Output:\n{}", String::from_utf8_lossy(&output.stdout));
|
||||
if !output.stderr.is_empty() {
|
||||
println!("Errors:\n{}", String::from_utf8_lossy(&output.stderr));
|
||||
}
|
||||
|
||||
if !output.status.success() {
|
||||
return Err(miette!("An error occurred: {}", String::from_utf8_lossy(&output.stderr)));
|
||||
return Err(miette!(
|
||||
"Failed to build adapter: {}",
|
||||
String::from_utf8_lossy(&output.stderr)
|
||||
));
|
||||
}
|
||||
info!("Adapter built successfully");
|
||||
debug!("{}", String::from_utf8_lossy(&output.stdout));
|
||||
|
||||
self.find_contract(adapter_contract)
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ impl TestRunner {
|
||||
vm_traces: bool,
|
||||
) -> Self {
|
||||
let repo_root = env::current_dir().expect("Failed to get current directory");
|
||||
let evm_path = repo_root.join("../evm");
|
||||
let evm_path = repo_root.join("evm");
|
||||
let adapter_contract_builder =
|
||||
AdapterContractBuilder::new(evm_path.to_string_lossy().to_string());
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user