Skip to content

Commit b7da9bf

Browse files
committed
feat: contracts-bedrock BuildInfo
Enable hardhat style `BuildInfo` generation that integrates with the hardhat plugin. The debug files (`*.dbg.json`) are generated by default and are able to be pulled into hardhat tasks with `Artifacts.getBuildInfo`.
1 parent 3799bb6 commit b7da9bf

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

.changeset/curly-spoons-invent.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@eth-optimism/contracts-bedrock': patch
3+
---
4+
5+
Enable hardhat style buildinfo

packages/contracts-bedrock/foundry.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ remappings = [
1515
extra_output = ['devdoc', 'userdoc', 'metadata', 'storageLayout']
1616
bytecode_hash = 'none'
1717

18-
# build_info = true
18+
build_info = true

packages/contracts-bedrock/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"devDependencies": {
4747
"@eth-optimism/hardhat-deploy-config": "^0.2.0",
4848
"@defi-wonderland/smock": "^2.0.2",
49-
"@foundry-rs/hardhat-forge": "^0.1.7",
49+
"@foundry-rs/hardhat-forge": "^0.1.8",
5050
"@nomiclabs/hardhat-ethers": "^2.0.0",
5151
"@nomiclabs/hardhat-waffle": "^2.0.0",
5252
"@typechain/ethers-v5": "^7.0.1",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,10 +1614,10 @@
16141614
command-exists "^1.2.9"
16151615
ts-interface-checker "^0.1.9"
16161616

1617-
"@foundry-rs/hardhat-forge@^0.1.7":
1618-
version "0.1.7"
1619-
resolved "https://registry.yarnpkg.com/@foundry-rs/hardhat-forge/-/hardhat-forge-0.1.7.tgz#54f3224d426811cbb2dee5b0516aa593d553a856"
1620-
integrity sha512-6aDXmzy4V4NyOeclTrskrKFf5A0hOx0xDdjm8e8qAzFdC3Y0HlXdr66uUFBVHMsQbWLRVf6IzqeISzCcc6ZJ2g==
1617+
"@foundry-rs/hardhat-forge@^0.1.8":
1618+
version "0.1.8"
1619+
resolved "https://registry.yarnpkg.com/@foundry-rs/hardhat-forge/-/hardhat-forge-0.1.8.tgz#2e15b275e7f6672dea96ebddcae312009bb458a1"
1620+
integrity sha512-jGIK3wBWHdYXeyjJ9ULBVBaSpmXnaL9yTpGYy+2hn8JM5iOvdSXZgxJQuFZQT/BFrjFt/RVWiMynzyhAtJ+nlg==
16211621
dependencies:
16221622
"@foundry-rs/easy-foundryup" "^0.1.3"
16231623
"@nomiclabs/hardhat-ethers" "^2.0.0"

0 commit comments

Comments
 (0)