Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
Preserve comments when flattening & bump version to 0.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
rkalis committed Jan 17, 2020
1 parent c67bea4 commit 1ce8074
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/kalis-me-tutorial-code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"dependencies": {
"dotenv": "^8.0.0",
"@truffle/hdwallet-provider": "^1.0.28",
"truffle-plugin-verify": "^0.3.7"
"truffle-plugin-verify": "^0.3.8"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "truffle-plugin-verify",
"version": "0.3.7",
"version": "0.3.8",
"description": "Verify your deployed smart contracts on Etherscan from the Truffle CLI",
"repository": "https://github.com/rkalis/truffle-plugin-verify",
"main": "verify.js",
Expand Down
2 changes: 1 addition & 1 deletion verify.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const fetchMergedSource = async (artifact, options) => {
)

logger.debug(`Flattening source file ${artifact.sourcePath}`)
let mergedSource = await merge(artifact.sourcePath)
let mergedSource = await merge(artifact.sourcePath, { removeComments: false })
// Include the preamble if it exists, removing all instances of */ for safety
if (options.verifyPreamble) {
logger.debug('Adding preamble to merged source code')
Expand Down

0 comments on commit 1ce8074

Please sign in to comment.