Categories
Cryptocurrency Ethereum Mastering Development

The network id specified in the truffle config (4447) does not match the one returned by the network (4777)

Please, the error messsage is in this imgur link, how’s that even possible? They are the same network, but I still cannot test my smart contract via Truffle.
https://i.stack.imgur.com/vykIa.jpg

Code of the truffle-config.js file:

const path = require("path");
module.exports = {contracts_build_directory: path.join(_dirname, "client/src/contracts"),
networks: {
 develop: {
     port: 7545,
     host: "127.0.0.1",
     network_id: 4777
 }
},

compilers: {
    solc: {
        version: "^0.6.0"
    }
 }
}

Leave a Reply

Your email address will not be published. Required fields are marked *