Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
10 Skipped Deployments
|
🦋 Changeset detectedLatest commit: c41956a The changes in this PR will be included in the next version bump. This PR includes changesets to release 23 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
tomiir
left a comment
There was a problem hiding this comment.
Don't we need tests for the wallet buttons component?
There was a problem hiding this comment.
Bug: Optional Parameters Cause Incorrect Connector Matches
The getConnector method's id and rdns parameters were made optional, but its internal logic c.explorerId === id || c.info?.rdns === rdns does not correctly handle undefined inputs. This can lead to incorrect matches when id or rdns are undefined, as c.explorerId === undefined or c.info?.rdns === undefined will match connectors with uninitialized or missing IDs/RDNS. Crucially, if both id and rdns are undefined, the method may return an unintended connector instead of returning no connector.
packages/controllers/src/controllers/ConnectorController.ts#L284-L299
appkit/packages/controllers/src/controllers/ConnectorController.ts
Lines 284 to 299 in c41956a
Bug: Error State Persistence After Successful Connection
The error state reset logic was removed from AppKitWalletButton's ChainController subscriptions. Previously, this.error was set to false when activeCaipAddress became truthy. This logic is now missing from both the general and namespace-specific caipAddress subscriptions, causing the button to remain in an error state even after a successful connection.
packages/wallet-button/src/scaffold-ui/appkit-wallet-button/index.ts#L77-L93
Bug: Social Connector Namespace Parameter Inconsistency
The connectSocial function inconsistently passes the namespace parameter to ConnectorController.getAuthConnector(). While one call correctly uses the provided namespaceToUse, other calls within the same function omit this parameter. This can lead to different authentication connectors being retrieved within the same social connection flow, causing connection failures or incorrect behavior in multichain scenarios.
packages/controllers/src/utils/ConnectorControllerUtil.ts#L230-L245
appkit/packages/controllers/src/utils/ConnectorControllerUtil.ts
Lines 230 to 245 in c41956a
Was this report helpful? Give feedback by reacting with 👍 or 👎
Description
Upgraded wallet button to support multichain via the
namespacepropExample usage with Components
Example usage with Hooks
Example usage with Vanilla JS
Type of change
Associated Issues
For Linear issues: Closes APKT-3122
Checklist