While trying to deploy/migrate a dapp to Ropsten I get the following error:
C:\CrowdBank-master\CrowdBank-master>truffle.cmd migrate --reset --network ropsten
Using network 'ropsten'.
Running migration: 1_initial_migration.js
Deploying Migrations...
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Unknown address - unable to sign transaction for this address: "0x94e1E6DbEf0936d494B7B23C47F80dfA195e28Fa"
I have created the above address (0x94e1E6DbEf0936d494B7B23C47F80dfA195e28Fa) on Metamask, it has a balance of 1 ether.
Here is how my truffle.js file looks like:
// Allows us to use ES6 in our migrations and tests.
var HDWalletProvider = require("truffle-hdwallet-provider");
var infura_apikey = "...";
var mnemonic = "...";
var address = "0x94e1E6DbEf0936d494B7B23C47F80dfA195e28Fa"
module.exports = {
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*' // Match any network id
},
ropsten: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/v3/...")
},
network_id: 3,
from: address,
gas: 4000000
}
}
}
Below is a link to the project, its designed for localhost, I modified the truffle.js file to deploy it on ropsten. What else do I have to do?
https://github.com/anshulshah96/LoanDe-centralised
Please help me out on this one.