Closed janniksam closed 1 year ago
Good point. It may need more work, like global states handling responses from smart contracts, etc. I added it to the todo list: https://github.com/orgs/xdevguild/projects/1. I'll get back to it shortly
useTransaction
and useScTransaction
now return txResult
const { pending, triggerTx, transaction, txResult, error } = useTransaction({ cb });
In many cases its necessary to know, if a transaction is failing or not.
We already call it here: sendTxOperations#L27
To be able to deal with the transactions status at a higher level I would suggest something like this: