-
Lesson 5: Error: invalid BigNumber value I am following the tutorials as shown in 7:20:00 of the video, but I keep running into errors
And here is the error
This is really slowing me progress as I can't follow up with the subsequent lessons. Infact, I haven't been able to deploy any transaction to my Ganache network. The first example on "Transaction Response" and "Transaction Receipt" also gave me an error (Error: cannot estimate gas; transaction may fail or may require manual gas limit), but I decided to power through to the next example, which is this one. And once again, I'm running into another error. Please I need help. I so badly don't want to lose momentum. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@Renzo1 , it's a BigNumber issue, can you pass write:
to
|
Beta Was this translation helpful? Give feedback.
-
@Renzo1 also for your Second question :
Try giving a manual gas Limit! Hope it works |
Beta Was this translation helpful? Give feedback.
-
Thank @KarthickSakthi once again for all the support. I have managed to resolve the issues by retracing my steps. Upon investigation, I discovered that the problem did not originate from Ganache, as I was able to record transactions on my local network successfully. Instead, the issue lied with my contract, which was not functioning as expected and kept throwing errors. To address this, I decided to start afresh in my regular Windows environment, assuming that some of the complexities might have arisen from using the WSL (Windows Subsystem for Linux) virtual environment. In order to overcome the limitations of the Windows Command Prompt, I installed Hyper terminal, which allows me to run similar Unix commands as in the WSL terminal. To summarize, after going through the tutorial steps again, I realized that my installation of solc was incorrect, resulting in my contracts not compiling properly. Additionally, I found that the latest versions of Ether.js (6.0.0 and above) were not compatible with the examples provided in the course. Consequently, I downgraded to "ethers": "5.6.2", which resolved the issue. I appreciate the support, and I now feel relieved as I can continue with the rest of the course. |
Beta Was this translation helpful? Give feedback.
Thank @KarthickSakthi once again for all the support. I have managed to resolve the issues by retracing my steps.
Upon investigation, I discovered that the problem did not originate from Ganache, as I was able to record transactions on my local network successfully. Instead, the issue lied with my contract, which was not functioning as expected and kept throwing errors.
To address this, I decided to start afresh in my regular Windows environment, assuming that some of the complexities might have arisen from using the WSL (Windows Subsystem for Linux) virtual environment. In order to overcome the limitations of the Windows Command Prompt, I installed Hyper terminal, which allows me to run …