Closed miohtama closed 10 months ago
I'm not sure about the observerKeys but at least the user wallets are well known files that are the same for every machine. So there is no need to exclude them from the repository.
Of course it's highly dangerous to use those on the mainnet, so don't do that on any circumstance :)
The templates should teach newcomer developers the best practices. In this case, the project template is not achieving this goal.
I am creating a Hello World project with this template:
https://docs.elrond.com/developers/tutorials/counter/
Because there is no .gitgnore, all generated files, including keys (PEM) are added to git.
Because these are obviously generated files, contain secrets (private keys), this is dangerous.
I suggest a default
.gitignore
is included in all Elrond smart contract project templates, properly showing users how not to commit their keys by accident.