Closed kavish6 closed 2 years ago
Hi!
Following the youtube tutorial, when I try to:
yarn add @ethersproject/contract
Terminal return: error An unexpected error occurred: "https://registry.yarnpkg.com/@ethersproject%2fcontract: Not found"
Also, I use this stackoverflow solution:
Replacing: import {Contract} from '@ethersproject/contracts'
By: import {Contract} from '@usedapp/core/node_modules/@ethersproject/contracts'
Yes! We should add this to the chronological issues spot of the main repo....
Thanks both of you! Closing for now.
when I use this useContractFunction in useStateToken.tsx file
const {state:approveErc20State,send:approveErc20Send}= useContractFunction(erc20Contract,'approve',{transactionName:"Approve ERC20 transfer"})
This line I got an error msgI Fixed this issue for me by deleting the @ethersproject folder inside @usedapp folder . I think you should add this to the README file as I could not figure out how to resolve this issue for some time