Skip to content

fix(connect-multichain): rethrow singleton initialization cleanup errors#306

Merged
jiexi merged 4 commits into
mainfrom
singleton-init-cleanup
May 27, 2026
Merged

fix(connect-multichain): rethrow singleton initialization cleanup errors#306
jiexi merged 4 commits into
mainfrom
singleton-init-cleanup

Conversation

@wenfix
Copy link
Copy Markdown
Contributor

@wenfix wenfix commented May 26, 2026

https://consensyssoftware.atlassian.net/browse/WAPI-1528

Summary

  • Rethrows singleton initialization failures after clearing the stored singleton promise.
  • Keeps retry behavior intact after a failed initialization attempt.
  • Adds regression coverage for the cleanup promise and retry path.

Testing

  • yarn workspace @metamask/connect-multichain vitest run src/init.test.ts -t "should rethrow singleton initialization errors after cleanup and allow retry"

…promise and rethrows after clearing the singleton key
@wenfix wenfix requested a review from a team as a code owner May 26, 2026 14:04
jiexi
jiexi previously approved these changes May 26, 2026
# Conflicts:
#	packages/connect-multichain/CHANGELOG.md
@jiexi jiexi merged commit 092eb87 into main May 27, 2026
20 checks passed
@jiexi jiexi deleted the singleton-init-cleanup branch May 27, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants