You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this library uses only native Error, it's hard to distinguish the reason why transaction failed. The only way at the moment is to compare error message, which is very cumbersome. I'd like to be able to do the following:
try {
// some transaction code
} catch (e) {
if (e instanceof errors.AbortedError) {
// retry
}
}
Does this make sense or is there any better way to achieve this?