Skip to content

Lesson-5 : Ethers.js /SimpleStorage #6576

Answered by arpityadav25
arpityadav25 asked this question in Q&A
Discussion options

You must be logged in to vote

To anyone going through the same trouble.
downgrade:

  1. yarn remove ethers
  2. Remove ethers and its version from package.json
  3. yarn add [email protected],

Then you'll get an error 'could not detect network'
now you'll have to open the settings in the ganache( top right corner with the gear option), head to server, change the host name to 192.XXX.XXX, port number to 8545 and network id to 1337.
Also, copy the pass key again from a different index after making changes
It should work.

note: your solidity compiler version should be "0.8.7-fixed".
to change compiler version type this command-
" yarn remove solc " (It should remove your current compiler version)
then,
" yarn add solc@"0.8.7-fixed "
this wi…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@arpityadav25
Comment options

Comment options

You must be logged in to vote
3 replies
@machinesr
Comment options

@adityakhare86
Comment options

@machinesr
Comment options

Answer selected by arpityadav25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants