-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfoundry.toml
More file actions
35 lines (30 loc) · 1.01 KB
/
foundry.toml
File metadata and controls
35 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[profile.default]
src = "src"
out = "out"
libs = ["lib"]
solc = "0.8.26"
# See more config options https://github.com/foundry-rs/foundry/blob/master/crates/config/README.md#all-options
# necessary as some of the zksync contracts are big
via_ir = true
optimizer = true
optimizer_runs = 200
# Omit CBOR metadata hash from bytecode. Required for full (not partial) source
# verification on ZkSync explorer. Without this, the metadata hash includes source
# file paths, and the ZkSync verifier rejects OpenZeppelin's "../" relative imports,
# forcing flattened/rewritten sources that produce a different metadata hash.
bytecode_hash = "none"
[lint]
# Exclude ERC20 transfer warning - false positive for ERC721.transferFrom in tests
exclude_lints = ["erc20-unchecked-transfer"]
[profile.zksync]
src = "src"
out = "zkout"
libs = ["lib"]
solc = "0.8.26"
via_ir = true
optimizer = true
optimizer_runs = 200
bytecode_hash = "none"
# Exclude L1-only contracts that use SSTORE2/EXTCODECOPY
ignored_error_codes = []
ignored_warnings_from = []