【发布时间】:2021-06-13 17:50:56
【问题描述】:
我正在尝试使用此配置在 ropsten 网络上迁移/测试我的智能合约:
networks: {
ropsten: {
provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/${infuraKey}`),
network_id: 3, // Ropsten's id
gas: 3000000,
}
},
运行truffle migrate --network ropsten
但我不断收到此错误:
Error: *** Deployment Failed ***
"Migrations" could not deploy due to insufficient funds
* Account: **address**
* Balance: 0 wei
* Message: sender doesn't have enough funds to send tx. The upfront cost is: 6000000000000000 and the sender's account only has: 0
如何证明我有足够的资金?
【问题讨论】: