connect icon indicating copy to clipboard operation
connect copied to clipboard

Propagate transaction broadcast errors to openContractCall

Open 2snEM6 opened this issue 2 years ago • 1 comments

Right now there is now way to know if a transaction has been rejected by the API. It would be useful if calls such as openContractCall would include an onFailure callback or similar that gets fired whenever there is an issue.

2snEM6 avatar Jul 21 '22 18:07 2snEM6

Relaying a comment from @aulneau in Discord:

yeah, this is something i've run into in the past, it's so hard to debug onFailure seems like it might make sense, was thinking about how it'd be nice to have these three:

onSuccess - meaning it's a correct transaction, and it's been broadcast onFailure - failed for some reason onCancel - user ends session before completing any action

i'm not sure this would make sense for message signing though, but it could

I think this makes a lot of sense too, it'd be nice to be able to target each state with a specific strategy on the UI/UX side.

whoabuddy avatar Jul 21 '22 20:07 whoabuddy