New answers tagged

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 ...


Top 50 recent answers are included