Skip to content

Commit 2de28e5

Browse files
committed
Add foundry support
1 parent 3c4d3fa commit 2de28e5

File tree

5 files changed

+17
-3
lines changed

5 files changed

+17
-3
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
[submodule "lib/@openzeppelin-contracts-upgradeable"]
55
path = lib/@openzeppelin-contracts-upgradeable
66
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable.git
7+
[submodule "lib/forge-std"]
8+
path = lib/forge-std
9+
url = https://github.com/foundry-rs/forge-std.git

foundry.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[profile.default]
2+
solc_version = '0.8.26'
3+
evm_version = 'cancun'
4+
src = 'contracts'
5+
out = 'out'
6+
libs = ['node_modules', 'lib']
7+
test = 'test'
8+
cache_path = 'cache_forge'
9+
10+
[fuzz]
11+
runs = 5000
12+
max_test_rejects = 150000

hardhat.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { argv } = require('yargs/yargs')()
33
.options({
44
compiler: {
55
type: 'string',
6-
default: '0.8.25',
6+
default: '0.8.26',
77
},
88
hardfork: {
99
type: 'string',

lib/forge-std

Submodule forge-std added at 6e05729

remappings.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# v5 (released)
21
@openzeppelin/contracts@v5/=@openzeppelin/contracts/
32
@openzeppelin/contracts-upgradeable@v5/=@openzeppelin/contracts-upgradeable/
43

5-
# Master (unreleased)
64
@openzeppelin/contracts@master/=lib/@openzeppelin-contracts/contracts/
75
@openzeppelin/contracts-upgradeable@master/=lib/@openzeppelin-contracts-upgradeable/contracts/

0 commit comments

Comments
 (0)