Replies: 2 comments 2 replies
-
@EEXstnce Make sure to clean the artifacts folder first run this command Import the file; import Lottery from "../constants/Lottery.json"; and then update this; const {runContractFunction: getEntranceFee } = useWeb3Contract({
abi: Lottery.abi,
contractAddresses: raffleAddress, //specify the networkId
functionName: "getEntranceFee",
params: {},
}) And now restart the frontend and try again. If it still does not work then leave both your repos I will check. |
Beta Was this translation helpful? Give feedback.
-
I have the exact same problems. Did you find any solution? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All,
Been searching for hours now to no avail. Working on lesson 10 and I cannot get updateUI() to return my getEntranceFee(), it just keeps coming up as undefined.
LotteryEntrance.js
index.js
Backend 99-update-front-end.js:
Have looked through every discussion so far, searched stackoverflow and ethereumstackexchange, tried to trouble shoot by running my own moralis server. Nada. @PatrickAlphaC is there anyone you can tag who might be able to help?
Beta Was this translation helpful? Give feedback.
All reactions