Skip to content

Commit

Permalink
fix(artifacts.json): remove DummyEmptyContract entry
Browse files Browse the repository at this point in the history
  • Loading branch information
arwer13 committed May 25, 2023
1 parent 382eb0f commit 103ce26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 0 additions & 7 deletions artifacts.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,6 @@
"address": "0xCC52f17756C04bBa7E377716d7062fC36D7f69Fd",
"txHash": "0xd9eb2eca684770e4d2b192709b6071875f75072a0ce794a582824ee907a704f3"
},
{
"artifactPath": "artifacts/contracts/0.8.9/test_helpers/DummyEmptyContract.sol/DummyEmptyContract.json",
"sourcePath": "contracts/0.8.9/test_helpers/DummyEmptyContract.sol",
"name": "DummyEmptyContract",
"address": "0x6F6541C2203196fEeDd14CD2C09550dA1CbEDa31",
"txHash": "0x9d76786f639bd18365f10c087444761db5dafd0edc85c5c1a3e90219f2d1331d"
},
{
"artifactPath": "artifacts/contracts/0.8.9/EIP712StETH.sol/EIP712StETH.json",
"sourcePath": "contracts/0.8.9/EIP712StETH.sol",
Expand Down
3 changes: 3 additions & 0 deletions scripts/extract-artifacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const artifactsPath = path.resolve(__dirname, '..', artifactsFileName)
const deployedFileName = 'deployed-mainnet.json'
const deployedPath = path.resolve(__dirname, '..', deployedFileName)

const stateKeysToIgnore = ['dummyEmptyContract']
const additionalArtifacts = [
{
"artifactPath": "artifacts/contracts/0.6.11/deposit_contract.sol/DepositContract.json",
Expand Down Expand Up @@ -44,6 +45,8 @@ async function extractArtifacts() {

let artifacts = []
for (const key in state) {
if (stateKeysToIgnore.indexOf(key) > -1) continue

const contractInfo = state[key]
if (isValidContractInfo(contractInfo.proxy)) {
artifacts.push(getArtifactFromContractInfo(contractInfo.proxy))
Expand Down

0 comments on commit 103ce26

Please sign in to comment.