feat: add optional callback to handle tx status changing
Add optional callback functions to useTransaction and useTransactions hook that will handle each status of the transaction.
Looks good, but I believe the callbacks should be called inside the onSuccess callback for useQuery.
Yep you're right, it would make more sense !
Hey @J4ckyLIM, any blocker on this issue I can help with?
This can be reviewed I think :)
Hey, I added the useTransactionReceipt hook in #180. I think you should add the callbacks to that hook and not useTransaction.
You're right, it makes more sense, i'll do to it ASAP :) (likely in 10 hours or so)
Closing this PR, work done here