From c50a3c47eaf4b9c846d28b7140e9331056fcee2f Mon Sep 17 00:00:00 2001 From: bxpana Date: Fri, 1 Nov 2024 12:20:49 -0700 Subject: [PATCH] fix: foundry deploy and verify Added the foundry.toml file to the repository to specify using zksolc to `1.5.6` This allowed me to deploy and verify the contract without changes as in the steps mentioned in the [Github Discussion post](https://github.com/zkSync-Community-Hub/zksync-developers/discussions/756) Verified contract on Abstract testnet: --- .gitignore | 4 ++++ foundry.toml | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 foundry.toml diff --git a/.gitignore b/.gitignore index 1901cfa..920645c 100644 --- a/.gitignore +++ b/.gitignore @@ -35,3 +35,7 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts + +# Compiler outputs +/cache +/zkout \ No newline at end of file diff --git a/foundry.toml b/foundry.toml new file mode 100644 index 0000000..cac8fb8 --- /dev/null +++ b/foundry.toml @@ -0,0 +1,8 @@ +[profile.default] +src = "contracts" +out = "out" +libs = ["lib"] +solc_version = "0.8.19" + +[profile.default.zksync] +zksolc = "1.5.6" \ No newline at end of file