【问题标题】:Truffle: Sender doesn't have enough funds to send txTruffle:发件人没有足够的资金来发送 tx
【发布时间】: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

如何证明我有足够的资金?

【问题讨论】:

    标签: ethereum solidity truffle


    【解决方案1】:

    您的 Ropsten 帐户需要have ETH 才能与网络交互。

    【讨论】:

      猜你喜欢
      • 2015-10-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-26
      • 2023-02-19
      • 1970-01-01
      • 2019-03-12
      • 1970-01-01
      相关资源
      最近更新 更多