-
Notifications
You must be signed in to change notification settings - Fork 11
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
fix: error interactions regression #293
Conversation
failed interactions were never resolved in connect button
26208f5
to
4254878
Compare
), | ||
) | ||
) | ||
.mapErr((error) => logger?.error({ method: 'addWalletResponses', error })) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returns the logger object ILogObjMeta
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah saw that decided to not change as it's not a problem, this error is not consumed anywhere after that. I can make it return undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or map to SdkError
just for the sake of consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not consumed. Does not really matter
): ResultAsync<unknown, SdkError> => | ||
): ResultAsync< | ||
WalletInteractionSuccessResponse, | ||
SdkError | WalletInteractionFailureResponse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we keep it as SdkError
only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No because it'd not be adequate. It can error with FailureResponse
that's actually the whole point of this regression :)
isSupported: () => _isSupported, | ||
destroy: () => {}, | ||
disconnect: () => {}, | ||
send: () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use vitest fn for this purpose?
🎉 This PR is included in version 2.2.0-dev.16 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.2.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
failed interactions were never resolved in connect button