Skip to content

Commit

Permalink
fix(artifacts.json): add missing DepositContract entry
Browse files Browse the repository at this point in the history
  • Loading branch information
arwer13 committed May 25, 2023
1 parent 1fb5889 commit 382eb0f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions artifacts.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,11 @@
"name": "LidoLocator",
"address": "0x1D920cc5bACf7eE506a271a5259f2417CaDeCE1d",
"txHash": "0xf90012ef0a40e47c909ab3a5b3503ecee78f6a9be134d1349a742e500d37ae33"
},
{
"artifactPath": "artifacts/contracts/0.6.11/deposit_contract.sol/DepositContract.json",
"sourcePath": "contracts/0.6.11/deposit_contract.sol",
"name": "DepositContract",
"address": "0x00000000219ab540356cBB839Cbe05303d7705Fa"
}
]
9 changes: 9 additions & 0 deletions scripts/extract-artifacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ const artifactsPath = path.resolve(__dirname, '..', artifactsFileName)
const deployedFileName = 'deployed-mainnet.json'
const deployedPath = path.resolve(__dirname, '..', deployedFileName)

const additionalArtifacts = [
{
"artifactPath": "artifacts/contracts/0.6.11/deposit_contract.sol/DepositContract.json",
"sourcePath": "contracts/0.6.11/deposit_contract.sol",
"name": "DepositContract",
"address": "0x00000000219ab540356cBB839Cbe05303d7705Fa"
}
]

function isValidContractInfo(info) {
let isObject = function(a) {
Expand Down Expand Up @@ -47,6 +55,7 @@ async function extractArtifacts() {
artifacts.push(getArtifactFromContractInfo(contractInfo))
}
}
artifacts.push(...additionalArtifacts)

const artifactsJson = JSON.stringify(artifacts, null, ' ')
fs.writeFileSync(artifactsPath, artifactsJson + '\n', 'utf8')
Expand Down

0 comments on commit 382eb0f

Please sign in to comment.