-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Events are fired even if the transaction fails #2319
Comments
thanks for submitting this issue, yeah I think we can probably do something like filter the result of the subscribed event by the result status and put that as an option for our users. cc: @zamrokk |
yes, there is a way to reproduce. Do this training :) => https://github.com/marigold-dev/training-dapp-shifumi On
and remove the Then run the game on 2 browsers and click on a shifumi action (paper,stone,scissor) at same time on both windows. You can look on tzkt that quite often one of the transaction will be failing and the event will be emitted anyway FYI : The cause of the failure is a bug on the cost estimator on Tezos code about event gas cost not taken into account. Ticket is open on it |
FYI : same for reveal function, there is same bug and gas override |
If I have a tx failing, the event is still subscribed and fired on taquito side, we can see the result field with the error stacktrace on it
I am not really sure that developers are really interested by uncompleted events.
To not break all current implementation I would suggest to filter all failing tx by default and add an option to not ignore failing tx events in case someone as a real use case around it
The text was updated successfully, but these errors were encountered: