1

As @Newti commented your gas price is too low. Rinkeby is Proof-of-Authority which doesn't care about gas prices so it's not a perfect test network. You mentioned that "gas limit is good". You are probably mixing up the concepts of "gas limit" and "gas price". "Gas limit" tells what is the maximum amount of gas you allow the transaction to spend. "Gas price"...


1

To use accounts other than the first one you have to indicate so to HDWalletProvider. Third parameter is account index, default is 0. For example to use the fifth one: provider: () => { return new HDWalletProvider(mnemonic, URL, 4); } If required you can indicate to load more than one account. To load the the first 5 accounts provider: () => { ...


1

Make sure you have enough eth in your migration account ( truffle uses account[0] on migrations ). I think your configuration is set to pay a ludicrous price for each gas uint but not allowing enough gas units to be spent for your transaction, either because the price is so large that you spend all your eth, or you set a low gas limit. Try removing the gas ...


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