Closed mikakort closed 1 year ago
I fixed it by:
writing this command in the terminal: yarn add ethers@5.7.2 (turns out there's an issue with 6.0.0+ versions of etherjs)
changing my code from: const provider = new ethers.JsonRpcProvider("http://0.0.0.0:7545"); TO: const provider = new ethers.providers.JsonRpcProvider( "HTTP://172.25.0.1:7545");
changing the ganache server connection to: vEthernet(WSL) (to change the connection, click on the settings button on the right of the screen, click on SERVER and choose the connection type with (WSL) in the name)
add 0x before "45286e1622b10ca3d0aa7031bc97f67d85e9d13572b57423487c2eea964d74f1"
Thanks dude @MrPimpDaddy69420
Lesson
Lesson 5
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://www.youtube.com/watch?v=gyMwXuJrbJQ&t=25657s
Operating System
Windows
Describe the bug
Error given:
TypeError: invalid BytesLike value (argument="value", value="45286e1622b10ca3d0aa7031bc97f67d85e9d13572b57423487c2eea964d74f1", code=INVALID_ARGUMENT, version=6.0.2)
deploy.js: