Dalton Stephany
Dalton Stephany

Reputation: 15

Chainlink ATestnetConsumer.sol not Running on Polygon

I had a question in terms of running the ATestnetConsumer.sol through remix on the polygon chain. I was able to run the oracle.sol with no issues and copy down the contract address, and creating a job with it. But when I run the consumer.sol, i get an error for "Internal JSON-RPC error code: -32000" is there an exact issue that can be tracked down to?

Upvotes: 0

Views: 129

Answers (1)

Harry Papacharissiou
Harry Papacharissiou

Reputation: 856

The setPublicChainlinkToken() function in the constructor that has no parameters is only configured to automatically set the address of the LINK token for Ethereum chains, any other EVM chains need to explicitly pass in the token address. Please update it to pass in the address of the LINK token on Mumbai as a parameter, and try again.

setChainlinkToken(0x326C977E6efc84E512bB9C30f76E30c160eD06FB);

Upvotes: 1

Related Questions