scaffold-eth / se-2-challenges

SpeedRunEthereum challenges (Powered by Scaffold-ETH 2)
https://speedrunethereum.com
MIT License
72 stars 138 forks source link

Challenge 3 wagmi 2 and refactor #176

Closed rin-st closed 3 months ago

rin-st commented 4 months ago

Migration to wagmi 2.

Also refactored challenge c624ab6e47851b4ad503460e769f53b788308f87 to use useScaffoldEventHistory hook with watch: true instead of useScaffoldWatchContractEvent, becauseuseScaffoldWatchContractEvent doesn't work as expected https://github.com/scaffold-eth/scaffold-eth-2/issues/838.

Code became cleaner but looks like it causes more rerenders. Tested and working well