Skip to content
9 changes: 8 additions & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ fs_permissions = [
{ access = "read", path = "./lib/dss-test/script/input/"},
{ access = "read", path = "./out/ArbitrumDomain.sol/ArbSysOverride.json"}
]
solc_version = "0.8.16"
evm_version = "cancun"
optimizer = true
optimizer_runs = 200
via_ir = false
libraries = [
"./lib/dss-exec-lib/src/DssExecLib.sol:DssExecLib:0x8De6DDbCd5053d32292AAA0D2105A32d108484a6"
]
Comment on lines +14 to +16
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: It's technically out of scope of this PR to (partially) move DssExecLib address into foundry.toml. But fine for me to keep it, until the next PR is merged. No action required


[rpc_endpoints]
mainnet = "${ETH_RPC_URL}"

# See more config options https://github.com/gakonst/foundry/tree/master/config
4 changes: 2 additions & 2 deletions scripts/check-deployed-dssspell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ fi
# Check verified spell linked library
library_address=$(echo "$verified_spell_info" | jq -r '.Library | split(":") | .[1]')
checksum_library_address=$(cast --to-checksum-address "$library_address")
if [ "$checksum_library_address" == "$(cat DssExecLib.address)" ]; then
success_check "DssSpell library matches hardcoded address in DssExecLib.address."
if [ "$checksum_library_address" == "$(cat foundry.toml | sed -nE 's/.*DssExecLib:(0x[0-9a-fA-F]{40}).*/\1/p')" ]; then
success_check "DssSpell library matches hardcoded address in foundry.toml."
else
error_check "DssSpell library does not match hardcoded address."
fi
Expand Down
Loading
Loading