diff --git a/.gitignore b/.gitignore index dbce94b..7519e1d 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,9 @@ out/ # Ignore broadcast logs broadcast/ +# Ignore zkout +zkout/ + # Forge auto-generated docs docs_generated/ diff --git a/docs/Deployment.md b/docs/Deployment.md index 9d91c16..c542ab5 100644 --- a/docs/Deployment.md +++ b/docs/Deployment.md @@ -55,6 +55,12 @@ $ WAT_BYTES32=$(cast format-bytes32-string $WAT) && \ script/${SCRIBE_FLAVOUR}.s.sol:${SCRIBE_FLAVOUR}Script ``` +In the case of zksync add this final flag: + +``` +--zksync +``` + The deployment command will log the address of the newly deployed contract address. Store this address in the `$SCRIBE` environment variable and continue with the verification. Verification: @@ -69,3 +75,10 @@ $ WAT_BYTES32=$(cast format-bytes32-string $WAT) && \ --constructor-args $(cast abi-encode "constructor(address,bytes32)" "$INITIAL_AUTHED" "$WAT_BYTES32") \ src/${SCRIBE_FLAVOUR}.sol:${SCRIBE_FLAVOUR}_1 ``` + + +In the case of zksync add these final two flags: + +``` +--zksync --evm-version london +``` diff --git a/foundry.toml b/foundry.toml index 0f96259..fb7136b 100644 --- a/foundry.toml +++ b/foundry.toml @@ -50,3 +50,7 @@ runs = 100 runs = 100 # See more config options https://github.com/foundry-rs/foundry/tree/master/config + + +[profile.default.zksync] +zksolc = "1.5.1"