Here is my truffle-config.js
networks: {
ropsten: {
network_id: 3,
host: '127.0.0.1',
port: 8545,
gas: 4000000,
from: "address_in_metamask"
},
I ran a geth node using the command:
geth --cache=1048 --testnet --unlock "address_in_metamask" --rpc --rpcapi "eth,net,web3" --rpccorsdomain '*' --rpcaddr localhost --rpcport 8545
After this in another tab, I ran the command
truffle migrate --network ropsten
I expected the smart contract to be deployed. But then I get the message as
Compiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.
Migrations dry-run (simulation)
===============================
> Network name: 'ropsten-fork'
> Network id: 3
> Block gas limit: 0x1e8480
1_initial_migration.js
======================
Deploying 'Migrations'
----------------------
Error: Error: Error: *** Deployment Failed ***
"Migrations" -- sender account not recognized.
at Object.run
(/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-
migrate/index.js:84:1)
at process._tickCallback (internal/process/next_tick.js:68:7)
Truffle v5.0.18 (core: 5.0.18)
Node v10.16.0
I have given the correct account address from Metamask which has enough ethers, yet it's not working. Please help.
Thank you.