Skip to content

Commit

Permalink
fix: undefined files when comparing to contracts on Etherscan
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Sep 22, 2023
1 parent f80b171 commit 919ebbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/diffContracts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/ts/diffContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const compareVerified2Local = async (
displayFileDiffs(files, options)
}

const aFileDesc = `"${options.aFile}" file for the `
const aFileDesc = options.aFile ? `"${options.aFile}" file with the ` : ''
console.log(
`Compared the ${aFileDesc}"${contractNameA}" contract with address ${addressA} on ${options.network}`,
)
Expand Down Expand Up @@ -125,7 +125,7 @@ export const compareFlattenContracts = async (

if (options.bFile || options.aFile) {
console.log(
`Compared the "${options.aFile}" file for the "${contractNameA}" contract with address ${addressA} on ${options.network}`,
`Compared the "${options.aFile}" file with the "${contractNameA}" contract with address ${addressA} on ${options.network}`,
)
console.log(
`to the "${
Expand Down

0 comments on commit 919ebbc

Please sign in to comment.