It would be helpful if the template already had npm install --save dotenv installed.
And already had require('dotenv').config() in truffle-config.js.
And an .env.example file, and .gitignore that ignored .env file
And had process.env.MOONBASE_PRIVATE_KEY in truffle-config.js.
It would be helpful if the template already had
npm install --save dotenv
installed. And already hadrequire('dotenv').config()
in truffle-config.js. And an .env.example file, and .gitignore that ignored .env file And hadprocess.env.MOONBASE_PRIVATE_KEY
in truffle-config.js.