Replies: 3 comments 2 replies
-
Great! |
Beta Was this translation helpful? Give feedback.
-
@cyberws, @shikhar229169 Thank you for sharing your experience |
Beta Was this translation helpful? Give feedback.
-
Hi asad124@DESKTOP-I9II3SB:~/ethers-simple-storage-fcc$ node deploy.js BELOW IS MY CODE const ethers = require("ethers"); async function main() { main() |
Beta Was this translation helpful? Give feedback.
-
Hi folks,
Thought I would share my experience with Lesson 5 and the issues caused by video using v5.6.2 and current version of ethers being v6.x.x
For ethers v5.6.2 (as shown in the video) the following commands are used to connect to Ganache
For ethers v6.7.1 (at the time of writing this) use:-
You can use the same commands as the video by using:-
To force the version of ethers to be v5.6.2
By using ethers v5.6.2 the output from the
console.log(contract);
Is much more verbose (like in the video), and shows Contract output rather than the much briefer BaseContract data that ethers v6.x.x outputs
For the rest of this lesson the syntax changes between 5 and 6 are as follows.
For ethers v5.6.2
For ethers v6.7.1
Hope this helps others.
Beta Was this translation helpful? Give feedback.
All reactions