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

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

Open
acuarica opened this issue Nov 14, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@acuarica
Copy link
Contributor

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
Copy link
Contributor

xhulz commented Nov 14, 2022

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

@acuarica acuarica added the bug Something isn't working label Nov 14, 2022
@cds-amal
Copy link
Member

@benjamincburns might have a library to use in this scenario

@freshgeek
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants