From c4709ce0b9038e8fa1f7a0ab149d34e78fca4c35 Mon Sep 17 00:00:00 2001 From: Josh Stevens Date: Fri, 20 Dec 2024 09:43:17 +0000 Subject: [PATCH] fix: building with forge --- .gitignore | 2 ++ foundry.toml | 1 + package.json | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a3679369..11ebfea6 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,8 @@ zkout/ # Docs docs/ +.idea + # Dotenv file .env diff --git a/foundry.toml b/foundry.toml index 9cc2777a..5b39a994 100644 --- a/foundry.toml +++ b/foundry.toml @@ -4,6 +4,7 @@ out = 'out' libs = ['node_modules', 'lib'] test = 'test' cache_path = 'cache_forge' +solc_version = '0.8.17' [fmt] line_length = 121 diff --git a/package.json b/package.json index befefc40..eb4f4b96 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test": "hardhat test --network hardhat", "prepare": "husky", "format": "forge fmt", - "abis": "forge build --out ./out/__ABIS__ --extra-output-files abi --via-ir && ts-node ./parseAbisToBackendFolders.ts", + "abis": "forge build --out ./out/__ABIS__ --skip 'test/**/*.sol' --extra-output-files abi --via-ir && ts-node ./parseAbisToBackendFolders.ts", "bind": "forge bind --bindings-path ./out/__BINDINGS__ --alloy --skip 'test/**/*.sol' --via-ir", "build-and-bind": "npm run bind && npm run abis" },