5

There is an issue in a way you use HDWalletProvider when configuring development network in truffle-config.js. You should add it like: provider: () => new HDWalletProvider('your mnemonic', 'http://127.0.0.1:7545') For me, it helped. Additional info can be found here.


1

truffle develop will read "develop" section instead of "development" section in truffle-config.js. From it's prompt: truffle(develop)> we should know it use network 'develop'. You can make customization in "develop" section. From: https://github.com/trufflesuite/truffle/blob/develop/packages/core/lib/commands/develop.js#L69-L82 You can find ...


1

In the latest truffle after 5.x.x, it is possible to specify compiler version in truffle-config.js: module.exports = { networks: { ... etc ... }, compilers: { solc: { version: <string> // ex: "0.4.20". (Default: Truffle's installed solc) } } }; Reference: https://github.com/trufflesuite/truffle/releases/tag/v5.0.0-beta....


Only top voted, non community-wiki answers of a minimum length are eligible