Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/late-beers-lay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@eth-optimism/contracts": patch
---

Updates deployment files to remove colon filenames
4 changes: 3 additions & 1 deletion packages/contracts/scripts/generate-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,13 @@ const networks = {
});

for (const contract of contracts) {
const colonizedName = contract.split(':').join('-');

const deploymentInfo = require(`../deployments/${deployment}/${contract}.json`);

const escPrefix = chainId !== 1 ? `${network}.` : "";
const etherscanUrl = `https://${escPrefix}etherscan.io/address/${deploymentInfo.address}`;
md += `|${contract}|[${deploymentInfo.address}](${etherscanUrl})|\n`;
md += `|${colonizedName}|[${deploymentInfo.address}](${etherscanUrl})|\n`;
}
md += `---\n`;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts/src/contract-defs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { Interface } from 'ethers/lib/utils'
export const getContractDefinition = (name: string, ovm?: boolean): any => {
const match = glob.sync(
path.resolve(__dirname, `../artifacts${ovm ? '-ovm' : ''}`) +
`/**/${name}.json`
`/**/${name.split('-').join(':')}.json`
)

if (match.length > 0) {
Expand Down