Open chidubemOkafor opened 2 years ago
Refactor args
to arguments
and copy this:
const arguments = [
vrfCoordinatorV2Address,
subscriptionId,
networkConfig[chainId]["gasLane"],
networkConfig[chainId]["keepersUpdateInterval"],
networkConfig[chainId]["raffleEntranceFee"],
networkConfig[chainId]["callbackGasLimit"],
]
Let me know if this works
Refactor
args
toarguments
and copy this:const arguments = [ vrfCoordinatorV2Address, subscriptionId, networkConfig[chainId]["gasLane"], networkConfig[chainId]["keepersUpdateInterval"], networkConfig[chainId]["raffleEntranceFee"], networkConfig[chainId]["callbackGasLimit"], ]
Let me know if this works
it didn't work
I don't want to give up but this error is really pushing it
Okay, I see two problems:
entranceFee: "100000000000000000",
Note: The entranceFee
above should be formatted as a string.
Okay, I see two problems:
- In networkConfig in your helper.hardhat-config.js file, copy the following:
entranceFee: "100000000000000000",
Note: The
entranceFee
above should be formatted as a string.
- Also, please check your subscriptionId, is it supposed to be zero?
yes, in the video he made the subscriptionId to be zero
Okay, I see two problems:
- In networkConfig in your helper.hardhat-config.js file, copy the following:
entranceFee: "100000000000000000",
Note: The
entranceFee
above should be formatted as a string.
- Also, please check your subscriptionId, is it supposed to be zero?
I am still getting the same error
@Chidubemcodes Please discuss this next time in the discussions tab.
one issue I am seeing is that const { verify } = require("../helper.hardhat-config")
verify coming from helper file but it is not there.
Also check the order of these args should be same as contract constructor.
const args = [
vrfCoordinatorV2Address,
interval,
entranceFee,
gasLane,
subscriptionId,
callBackGasLimit,
]
If this is resolved, please close the issue.
Additionally, if possible, a discussion with the category "Ideas" w/ the answer.
I'm having an issue like this in the same step, after the mocks are deployed:
Error: ERROR processing /home/daniel/daniel/dev/chainlink/smartcontract-lottery-fcc/deploy/01-deploy-raffle.js:
TypeError: Cannot read properties of undefined (reading 'toHexString')
I'll tell you what I can find
I'm having an issue like this in the same step, after the mocks are deployed:
Error: ERROR processing /home/daniel/daniel/dev/chainlink/smartcontract-lottery-fcc/deploy/01-deploy-raffle.js: TypeError: Cannot read properties of undefined (reading 'toHexString')
I'll tell you what I can find
My mistake is that I was catching the 31337 network, where I hadn't specified gasLane yet, so I had an "undefined" value where a string should be.
The gasLimit value is a property of a transaction object that specifies the maximum amount of gas that can be used for executing the transaction. It's possible that the gasLimit value provided in the script is too large or too small, resulting in the error.
One potential solution is to check the gasLimit value being passed to the contract deployment function and ensure that it is a valid integer value. You can also try to increase the gasLimit value slightly to see if that resolves the error.
Another possibility is that there is an issue with the version of the ABI library being used. You may want to check if there is an updated version of the library available and update it if necessary.
Lesson
Lesson 9
Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")
https://youtu.be/gyMwXuJrbJQ?t=55155
Operating System
Windows
Describe the bug
this is my 01-deploy-raffle.js
and this is my: helper.hardhat-config.js
![Screenshot 2022-07-10 143112](https://user-images.githubusercontent.com/93622341/178163100-72b74043-3658-45ae-a408-b1fa9673a0b7.png
I know I formatted this wrongly pls help me out 😔