Replies: 4 comments 4 replies
-
i have tried to log and i have discovered all my functions in the abi are all undefined so am not sure what the issue could be but when i log my abi and contractaddresses all have values , if i try to log any other function its returns undefined |
Beta Was this translation helpful? Give feedback.
-
Hi @pratokko Please provide us more information, which script exactly doesn't work? |
Beta Was this translation helpful? Give feedback.
-
Hi @pratokko Try implementing below: async function updateUI() {
const entranceFeeFromCall = (await getEntranceFee()).toString()
setEntranceFee(entranceFeeFromCall)
} And also check if you are connected to your MetaMask |
Beta Was this translation helpful? Give feedback.
-
Hi @pratokko, I had a similar issue, this might help: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello friends am trying this lottery frontend part but am not able to get the entranceFee below are my repos
https://github.com/pratokko/hh-lottery.git
https://github.com/pratokko/nextjs-hh-lottery.git
Beta Was this translation helpful? Give feedback.
All reactions