Chainlink 101 Truffle

Hi All,

I am following the tutorial on Chainlink 101 Truffle, and encountered the following error when i try to migrate with truffle migrate --network kovan --reset

Error: The network id specified in the truffle config (42) does not match the one returned by the network (1).  Ensure that both the network and the provider are properly configured.
    at Object.detectAndSetNetworkId (/usr/local/lib/node_modules/truffle/build/webpack:/packages/environment/environment.js:110:1)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.detect (/usr/local/lib/node_modules/truffle/build/webpack:/packages/environment/environment.js:24:1)
    at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate.js:201:1)
    at Command.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/core/lib/command.js:147:1)
Truffle v5.3.6 (core: 5.3.6)

I am wondering if anyone on the forum has the same issue as me? Do i need to change some setting in the truffle-config.js?
I have RPC_URL and MNEMONIC setup and put in a new file called .env

Also, I also notice there isn’t a category for Chainlink 101.

Cheers
Marco

1 Like

Think i got it solved. :grinning:

The RPC_URL should be https://kovan.infura.io/v3/(something)

Cheers
Marco

1 Like