Skip to content

Commit

Permalink
Add way to unlink contracts before verifying (#297)
Browse files Browse the repository at this point in the history
Symlink doesnt work with verification with foundry, so this is a hack that allows you to unlink the symlink before deploying, then re-link it after
  • Loading branch information
oveddan authored Oct 25, 2023
1 parent f00bd85 commit 683d5ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/1155-contracts/foundry.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 3 additions & 1 deletion packages/1155-contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down

0 comments on commit 683d5ef

Please sign in to comment.