smartcontractkit / hardhat-starter-kit

A repo for boilerplate code for testing, deploying, and shipping chainlink solidity code.
MIT License
1.21k stars 493 forks source link

[SUGGESTION OF FIX] Error running JSON-RPC server: The number NaN cannot be converted to a BigInt because it is not an integer #139

Closed facundocastello closed 1 year ago

facundocastello commented 2 years ago

https://github.com/smartcontractkit/hardhat-starter-kit/blob/ca2bd3d1de672005c8db0fe747c659724e174a32/hardhat.config.ts#L24

This line is causing the next error when running yarn hardhat node: Error running JSON-RPC server: The number NaN cannot be converted to a BigInt because it is not an integer

A possible solution would be to set a default value for the const FORKING_BLOCK_NUMBER or adding FORKING_BLOCK_NUMBER to .env.example so devs knows that it's a mandatory env.