From 248fa7889ef67c986129385a78597aabaf759e82 Mon Sep 17 00:00:00 2001 From: Bence Haromi Date: Tue, 27 Aug 2024 10:29:25 +0100 Subject: [PATCH] added foundry lib symlinks --- l1-contracts/foundry.toml | 8 +++++--- l1-contracts/lib/forge-std | 1 + l1-contracts/lib/murky | 1 + l1-contracts/lib/openzeppelin-contracts-upgradeable-v4 | 1 + l1-contracts/lib/openzeppelin-contracts-v4 | 1 + 5 files changed, 9 insertions(+), 3 deletions(-) create mode 120000 l1-contracts/lib/forge-std create mode 120000 l1-contracts/lib/murky create mode 120000 l1-contracts/lib/openzeppelin-contracts-upgradeable-v4 create mode 120000 l1-contracts/lib/openzeppelin-contracts-v4 diff --git a/l1-contracts/foundry.toml b/l1-contracts/foundry.toml index be0511889..98e394969 100644 --- a/l1-contracts/foundry.toml +++ b/l1-contracts/foundry.toml @@ -1,7 +1,7 @@ [profile.default] src = "contracts" out = "out" -libs = ["node_modules", "../lib"] +libs = ["lib"] cache_path = "cache-forge" test = "test/foundry" solc_version = "0.8.24" @@ -9,7 +9,9 @@ evm_version = "cancun" ignored_error_codes = ["missing-receive-ether", "code-size"] ignored_warnings_from = ["test", "contracts/dev-contracts"] remappings = [ - "forge-std/=../lib/forge-std/src/", - "murky/=../lib/murky/src/", + "forge-std/=lib/forge-std/src/", + "murky/=lib/murky/src/", "foundry-test/=test/foundry/", + "@openzeppelin/contracts-v4/=lib/openzeppelin-contracts-v4/contracts/", + "@openzeppelin/contracts-upgradeable-v4/=lib/openzeppelin-contracts-upgradeable-v4/contracts/", ] diff --git a/l1-contracts/lib/forge-std b/l1-contracts/lib/forge-std new file mode 120000 index 000000000..edce15694 --- /dev/null +++ b/l1-contracts/lib/forge-std @@ -0,0 +1 @@ +../../lib/forge-std \ No newline at end of file diff --git a/l1-contracts/lib/murky b/l1-contracts/lib/murky new file mode 120000 index 000000000..a556a15e5 --- /dev/null +++ b/l1-contracts/lib/murky @@ -0,0 +1 @@ +../../lib/murky \ No newline at end of file diff --git a/l1-contracts/lib/openzeppelin-contracts-upgradeable-v4 b/l1-contracts/lib/openzeppelin-contracts-upgradeable-v4 new file mode 120000 index 000000000..0551b6016 --- /dev/null +++ b/l1-contracts/lib/openzeppelin-contracts-upgradeable-v4 @@ -0,0 +1 @@ +../../lib/openzeppelin-contracts-upgradeable-v4 \ No newline at end of file diff --git a/l1-contracts/lib/openzeppelin-contracts-v4 b/l1-contracts/lib/openzeppelin-contracts-v4 new file mode 120000 index 000000000..693e94537 --- /dev/null +++ b/l1-contracts/lib/openzeppelin-contracts-v4 @@ -0,0 +1 @@ +../../lib/openzeppelin-contracts-v4 \ No newline at end of file