如何修复 "insufficient funds for gas * price + value"?

how to fix "insufficient funds for gas * price + value"?

windows 10 家 x64
bignumber.js@^7.2.1
openzeppelin-solidity@1.10.0
反应@16.4.1
反应-dom@16.4.1
松露@4.1.13
web3@1.0.0-beta.34
完整版本参考:
https://github.com/tooploox/ethereum-ico-examples/blob/master/package.json

我做了很多研究。我找到了很多来源,但其中 none 找到了解决方案,有些主题不再更新,或者他们可能已经找到答案但没有 post。有些人设法在 Mac 中修复它,但我正在使用 Windows。有人在 5 个月前修好它,但当我尝试时,它没有成功,购买稍微调高汽油并再次 运行。我的 Ropsten 帐户中也有 6 Ether

这是我的truffle.js

ropsten: {
  provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/"+infura_apikey),
  network_id: 3,
  gas: 4000000
},  

当我 truffle migrate --network ropsten:

it triggers this error:   
Running migration: 1_initial-migration.js
  Deploying Migrations...
Error encountered, bailing. Network state unknown. Review successful transactions manually.
insufficient funds for gas * price + value

Github参考:
https://github.com/tooploox/ethereum-ico-examples
指令参考:
https://www.tooploox.com/blog/create-and-distribute-your-erc20-token-with-openzeppelin

尝试在 truffle.js 文件中设置 gas 价格。

    gasPrice: 10000000000 // Something price like this

Source

希望对您有所帮助!