###実現したいこと
truffleでrinkebyネットワークへのデプロイ
###自分のファイル
truffle-config.js
var HDWalletProvider = require("truffle-hdwallet-provider"); var mnemonic = 'my_mnemonic'; var accessToken = 'my_accessToken'; const gas = 3000000; const gasPrice = 1000000000 * 60; module.exports = { networks: { rinkeby: { provider: function () { return new HDWalletProvider( mnemonic, accessToken ); }, network_id: 4, gas: gas, gasPrice: gasPrice, skipDryRun: true } }, compilers: { solc: { version: "0.5.2", } } };
1_initial_migration.js
var Migrations = artifacts.require("./Migrations.sol"); module.exports = function(deployer) { deployer.deploy(Migrations); };
###エラーメッセージ
Starting migrations... ====================== > Network name: 'rinkeby' > Network id: 4 > Block gas limit: 7006834 1_initial_migration.js ====================== Deploying 'Migrations' ---------------------- Error: *** Deployment Failed *** "Migrations" received: nonce too low. * This error is common when Infura is under heavy network load. * Try: setting the 'confirmations' key in your network config to wait for several block confirmations between each deployment. at /Users/banana/.nodebrew/node/v10.14.2/lib/node_modules/truffle/build/webpack:/packages/truffle-deployer/src/deployment.js:364:1 at process._tickCallback (internal/process/next_tick.js:68:7
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/02/28 07:07