vscode-ext icon indicating copy to clipboard operation
vscode-ext copied to clipboard

Do not remove comments from Truffle config file when deploying to a Ganache network

Open acuarica opened this issue 3 years ago • 3 comments

When deploying contracts to a Ganache network, the Truffle config file, e.g., truffle-config.js, is rewritten to add the selected network and deploy contracts to it. However, if the Truffle config file contains comments, these are removed. See example below.

truffle-sample-project-1668440979627

Expected behavior

Do not remove any comments from the Truffle config file. The extension should make just the minimal edit to add the selected Ganache network.

acuarica avatar Nov 14 '22 15:11 acuarica

Hey @acuarica, This is related to this issue: https://github.com/trufflesuite/vscode-ext/issues/249

xhulz avatar Nov 14 '22 16:11 xhulz

@benjamincburns might have a library to use in this scenario

cds-amal avatar Nov 17 '22 18:11 cds-amal

and deploy .sol file and local .sol file is diff ,local .sol file has comment ,so,when debug code is confusion

freshgeek avatar Dec 12 '23 06:12 freshgeek