LESSON 10: UI not updating recent winner #3772
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
@Codeinor : Run the commands in the following order ( Make sure your hardhat node is running ) : 1. First run the command ---> 2. Then run the command ---> It should update the recent winner in the UI after that! Let me know, If the issue persists.. |
Beta Was this translation helpful? Give feedback.
-
my question we required extra scripts to get a recent winner. is not it possible to get a winner from the front end? What's the purpose of frontend here? |
Beta Was this translation helpful? Give feedback.
@Codeinor : Run the commands in the following order ( Make sure your hardhat node is running ) :
1. First run the command --->
yarn hardhat run scripts/enter.js --network localhost
2. Then run the command --->
yarn hardhat run scripts/mockOffChain.js --network localhost
It should update the recent winner in the UI after that!
Let me know, If the issue persists..