In VS Code I get this warning in my contract constructor:
Visibility for constructor is ignored. If you want the contract to be non-deployable, making it "abstract" is sufficient.
So I remove the visibility, leaving my constructor as
constructor()
Which removes the warning, but when running
$ truffle migrate --reset
I get this error
SyntaxError: No visibility specified. Did you intend to add "public"? constructor() { ^ (Relevant source part starts here and spans across multiple lines). Compilation failed. See above.
The migration runs fine with the warning
Does anyone know how I can resolve this?
Truffle v5.2.5 (core: 5.2.5)
Node v12.16.3