-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathfoundry.toml
30 lines (25 loc) · 2.26 KB
/
foundry.toml
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
[profile.default]
src = "src"
out = "out"
libs = ["lib"]
match_path = "*/*.t.sol"
no_match_path = "*/_*"
evm_version = "cancun"
ignored_error_codes = [
"license", # warning[1878]: Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing "SPDX-License-Identifier: <SPDX-License>" to each source file. Use "SPDX-License-Identifier: UNLICENSED" for non-open-source code. Please see https://spdx.org for more information.
2394, # Warning (2394): Transient storage as defined by EIP-1153 can break the composability of smart contracts: Since transient storage is cleared only at the end of the transaction and not at the end of the outermost call frame to the contract within a transaction, your contract may unintentionally misbehave when invoked multiple times in a complex transaction. To avoid this, be sure to clear all transient storage at the end of any call to your contract. The use of transient storage for reentrancy guards that are cleared at the end of the call is safe.
3628, # Warning (3628): This contract has a payable fallback function, but no receive ether function. Consider adding a receive ether function.
3860, # Warning (3860): Contract initcode size is X bytes and exceeds Y bytes (a limit introduced in Shanghai). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
5159, # Warning (5159): "selfdestruct" has been deprecated. The underlying opcode will eventually undergo breaking changes, and its use is not recommended.
5574, # Warning (5574): Contract code size is 24870 bytes and exceeds 24576 bytes (a limit introduced in Spurious Dragon). This contract may not be deployable on Mainnet. Consider enabling the optimizer (with a low "runs" value!), turning off revert strings, or using libraries.
9302, # Warning (9302): Return value of low-level calls not used.
]
# For Huff
ffi = true
fs_permissions = [{ access = "read", path = "./out" }]
# For CREATE2
bytecode_hash = "none"
cbor_metadata = false
# For Paradigm CTF 2023 Grains of Sand
gas_limit = 34359738368 # 2^35
# See more config options https://github.com/foundry-rs/foundry/tree/master/crates/config