From 47a48e03373422ee253388a3c1326c5588d5c569 Mon Sep 17 00:00:00 2001 From: Chris Smith Date: Thu, 19 Sep 2024 14:46:18 -0700 Subject: [PATCH] chore: fix relative path --- crates/yttrium/.gitignore | 1 + crates/yttrium/build.rs | 4 ++-- crates/yttrium/src/smart_accounts/safe.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 crates/yttrium/.gitignore diff --git a/crates/yttrium/.gitignore b/crates/yttrium/.gitignore new file mode 100644 index 0000000..40c8a61 --- /dev/null +++ b/crates/yttrium/.gitignore @@ -0,0 +1 @@ +.foundry/ diff --git a/crates/yttrium/build.rs b/crates/yttrium/build.rs index d8cec0a..f163775 100644 --- a/crates/yttrium/build.rs +++ b/crates/yttrium/build.rs @@ -18,8 +18,8 @@ fn build_contracts() { fn format_foundry_dir(path: &str) -> String { format!( - "{}/../../../../.foundry/{}", - std::env::var("OUT_DIR").unwrap(), + "{}/.foundry/{}", + std::env::var("CARGO_MANIFEST_DIR").unwrap(), path ) } diff --git a/crates/yttrium/src/smart_accounts/safe.rs b/crates/yttrium/src/smart_accounts/safe.rs index 679409d..deee716 100644 --- a/crates/yttrium/src/smart_accounts/safe.rs +++ b/crates/yttrium/src/smart_accounts/safe.rs @@ -10,7 +10,7 @@ sol!( #[allow(missing_docs)] #[sol(rpc)] SafeProxyFactory, - "../../target/.foundry/forge/out/SafeProxyFactory.sol/SafeProxyFactory.json" + ".foundry/forge/out/SafeProxyFactory.sol/SafeProxyFactory.json" ); sol!(