trufflesuite/vscode-ext

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

acuarica opened this issue · 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.

xhulz commented

Hey @acuarica,
This is related to this issue: #249

@benjamincburns might have a library to use in this scenario

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