From 419b49ff62ad4ebd22a5044b4b6d1e1343f76e90 Mon Sep 17 00:00:00 2001 From: Dan Oved Date: Wed, 25 Oct 2023 08:34:37 -0600 Subject: [PATCH] Add way to unlink contracts before verifying --- packages/1155-contracts/foundry.toml | 7 ++++++- packages/1155-contracts/package.json | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/1155-contracts/foundry.toml b/packages/1155-contracts/foundry.toml index f91822c2e..e7f75fb4f 100644 --- a/packages/1155-contracts/foundry.toml +++ b/packages/1155-contracts/foundry.toml @@ -1,5 +1,10 @@ [profile.default] -fs_permissions = [{access = "read", path = "./addresses"}, {access = "read", path = "./chainConfigs"}, {access = "read", path = "./package.json"}, {access = "readwrite", path = "./deterministicConfig"}] +fs_permissions = [ + { access = "read", path = "./addresses" }, + { access = "read", path = "./chainConfigs" }, + { access = "read", path = "./package.json" }, + { access = "readwrite", path = "./deterministicConfig" }, +] libs = ['_imagine', 'node_modules', 'script'] allow_paths = ["node_modules/@zoralabs/protocol-rewards"] optimizer = true diff --git a/packages/1155-contracts/package.json b/packages/1155-contracts/package.json index 12b2c5bc9..055ef7a48 100644 --- a/packages/1155-contracts/package.json +++ b/packages/1155-contracts/package.json @@ -29,7 +29,9 @@ "storage-inspect:check": "./script/storage-check.sh check ZoraCreator1155Impl ZoraCreator1155FactoryImpl", "storage-inspect:generate": "./script/storage-check.sh generate ZoraCreator1155Impl ZoraCreator1155FactoryImpl", "js-test:watch": "vitest dev", - "anvil": "source .env.anvil && anvil --fork-url $FORK_RPC_URL --fork-block-number $FORK_BLOCK_NUMBER --chain-id 31337" + "anvil": "source .env.anvil && anvil --fork-url $FORK_RPC_URL --fork-block-number $FORK_BLOCK_NUMBER --chain-id 31337", + "unlink-contracts": "rm -rf ./node_modules/@zoralabs/protocol-rewards && cp -r ../protocol-rewards ./node_modules/@zoralabs/protocol-rewards", + "link-contracts": "rm -rf ./node_modules && cd .. && yarn" }, "files": [ "dist/",