Skip to content

Commit

Permalink
fix(protocol): Fix genesis tests (#14813)
Browse files Browse the repository at this point in the history
  • Loading branch information
adaki2004 authored Sep 26, 2023
1 parent 1d36a9c commit a38b1d4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/protocol/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ fs_permissions = [
{ access = "read", path = "./out" },
{ access = "read-write", path = "./deployments" },
{ access = "read", path = "./test" },
{ access = "read", path = "./genesis" },
]

fuzz = { runs = 256 }
Expand All @@ -33,3 +34,6 @@ line_length = 80
multiline_func_header = 'all'
number_underscore = 'thousands'
wrap_comments = true

[profile.genesis]
test = 'genesis'
2 changes: 1 addition & 1 deletion packages/protocol/genesis/generate_genesis.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ forge test \
--fork-url http://localhost:18545 \
--fork-retry-backoff 120 \
--no-storage-caching \
--match-path $DIR/*.g.sol \
--match-path genesis/*.g.sol \
--block-gas-limit 1000000000
2 changes: 1 addition & 1 deletion packages/protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"snapshot": "forge snapshot --match-path 'test/**/*.t.sol'",
"test": "forge test -vvv --gas-report --fuzz-seed $(date +%s) --nmp test/L1/TaikoL1.sim.sol",
"test:coverage": "forge coverage --report lcov",
"test:genesis": "./genesis/generate_genesis.test.sh",
"test:genesis": "FOUNDRY_PROFILE=genesis ./genesis/generate_genesis.test.sh",
"upgrade": "./script/upgrade_to.sh"
},
"keywords": [
Expand Down

0 comments on commit a38b1d4

Please sign in to comment.