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 } }, […]

Categories
Cryptocurrency Ethereum Mastering Development

Cannot interact with Compound via solidity

I am able to swap ETH to cETH using the mint () function in the CEth contract “0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5”, however somehow cannot do it using my smart contract. I am using a fork of the chain thanks to ganache-cli, I checked the documentation and really I cannot understand what I am doing wrong. This is the […]