People who code: we want your input. Take the Survey
1

This is a bit of a JavaScript question. Easier is to use the async/await pattern. That way you don't need to nest the promises. So it could look something like this: module.exports = function(deployer, network, accounts) { deployer.then(async () => { await deployer.deploy(A); await deployer.deploy(B, A.address); //... }); };...


1

I had this issue with truffle version 5.0.5, updating truffle to version 5.3.0 fixed the issue! npm install -g truffle@5.3.0 --save


1

I have fixed this problem by setting networkCheckTimeout as 10000 before setting provider in truffle-config.js. networks: { bsctest: { networkCheckTimeout: 10000, provider: () => new HDWalletProvider(mnemonic, `https://data-seed-prebsc-1-s1.binance.org:8545/`), network_id: 97, confirmations: 10, timeoutBlocks: 2000, ...


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