PS D:\nodejs\rff\metacoin> truffle --network ropsten migrate
Using network 'ropsten'.
Running migration: 1_initial_migration.js
Deploying Migrations...
Error encountered, bailing. Network state unknown. Review successful transactions manually.
undefined
Ich entpacke dann den Metacoin und mache Truffle --network ropsten nochmal. gleicher Fehler passiert. Meine truffle.js wie folgt:
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = "<My Mneomonic>";
module.exports = {
networks: {
rinkeby: {
host: "127.0.0.1", // Connect to geth on the specified
port: 8545,
from: "0xec14efb50fd9108a567b007479bd3345300d8374", // default address to use for any transaction Truffle makes during migrations
network_id: 4,
gas: 4612388 // Gas limit used for deploys
},
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*" // Match any network id
},
test: {
gas: 6721975,
gasPrice: 0,
host: '127.0.0.1',
port: 8545,
network_id: '*' // Match any network id
},
ropsten: {
from: "0x5FBC4Dde3019f7d93AA9c2b59E5537F3Fb1210df",
gas: 6721975,
gasPrice: 2,
provider: new HDWalletProvider(mnemonic, "https://ropsten.infura.io/<My token>"),
network_id: 3
}
}
}
Ich habe auch Rinkeby und Testnet ausprobiert. alles geht gut. dann versuche ich Rinkeby mit Anbieter: ' https://rinkeby.infura.io/ , habe den gleichen Fehler. Kann jemand helfen?
Ihr Benzinpreis für Ropsten ist zu niedrig. Ich würde vorschlagen, etwa 10 Gwei oder mehr zu verwenden (1 Gwei ~ "1000000000" wei).
Auch das Gaslimit auf Ropsten beträgt 4,7 Mio. Wenn Sie mehr angeben, wird die Transaktion nicht akzeptiert, auch wenn Sie nicht alle verwenden.