Improve emitted events for Clarity post-conditions #4744
Labels
good first issue
Appropriate for a new open source contribution.
icebox
Issues that are not being worked on
consider the following failed transaction:
in this example, the tx failed due to an incorrect asset_name being used
MIA
vs the expectedmiamicoin
.the emitted event that is consumed by the API (and then exposed to the explorer UI) is a bit too generic about why it has failed ("rolled back by a post condition", likely from the
tx_status
field the API is returning).I propose adding some extra data to the event emitted by stacks-node, specifiying which (possibly any) post-condition is actually causing the tx to fail.
Once added, there will need to be changes downstream to the event_observers that process this event.
The text was updated successfully, but these errors were encountered: