Scaffold-Stark / scaffold-stark-2

Open source forkable Starknet dev stack
https://www.scaffoldstark.com
66 stars 88 forks source link

fix: use read contract watch mode does not work #325

Closed metalboyrick closed 1 month ago

metalboyrick commented 1 month ago

Task name here

In speedrun, there is the issue of "Cannot mint token of same id". This is caused by useReadContract not working properly if args is not defined. Fixed by adding a fallback [] if args is undefined

Types of change

Comments (optional)