-
For some reason, line 5 (or line 22) of 01-deploy-raffle.js is generating a bignumber error. Others have posted about big number errors in the 01-deploy, but it seems my issue is specific to this section of the code.
which sets the value for fundSubscription():
which is causing the following error: ethers.utils.formatEther("") converts a string to a big number. The second argument in vrfCoordinatorV2Mock.fundSubscription(subscriptionId, VRF_SUB_FUND_AMOUNT) is supposed to be a uint96 (as defined by @chainlinks .sol code. Not sure how to proceed debugging from here. full error: An unexpected error occurred: Error: ERROR processing /Users/.../Raffle/deploy/01-deploy-raffle.js: Full code for 01-deploy:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hey @Robbe98 you shouldn't use |
Beta Was this translation helpful? Give feedback.
-
I've tried that (parseEther() and smaller value), though I get a different issue: |
Beta Was this translation helpful? Give feedback.
I've tried that (parseEther() and smaller value), though I get a different issue:
Error: invalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT, version=bignumber/5.7.0)