Skip to content

fix: keep configureAccount on enableToken intents (CHALO-1883) - #10128

Merged
bhavidhingra merged 1 commit into
masterfrom
bhavi/sdk-core-enabletoken-configure-account
Nov 4, 2026
Merged

bhavidhingra merged 1 commit into
masterfrom
bhavi/sdk-core-enabletoken-configure-account

Conversation

@bhavidhingra

Copy link
Copy Markdown
Contributor

Summary

populateIntent dropped the configureAccount opt-in for non-EVM enableToken prebuilds: the
generic tail only copied the flag inside its feeOptions !== undefined branch, and the Solana
enableToken prebuild supplies no feeOptions — so wallet.enableToken({ configureAccount: true })
reached Wallet Platform with the flag silently dropped and routed to plain ATA-init instead of
ConfigureAccount (found in wallet-platform PR #63702 review, which had flagged this against the
pinned beta).

Changes

  • mpcUtils.ts: the generic tail now carries configureAccount for enableToken intents
    regardless of feeOptions, scoped to that intent so other intents gain no field.
  • mpcUtils.enableToken.ts: 4 new unit tests — opt-in without feeOptions, explicit opt-out,
    opt-in with feeOptions, and no-field-for-non-enableToken intents (red/green proven: the two
    no-feeOptions cases failed against the prior code).

Refs: CHALO-1883

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.

Tip: disable this comment in your organization's Code Review settings.

@linear-code

linear-code Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

CHALO-1883

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

⚠️ Compatibility checks are failing on Node.js 27-nightly (experimental, non-blocking). This does not block merge, but it signals an incompatibility to fix before this release becomes supported.

View run

@bhavidhingra
bhavidhingra merged commit 53e1c81 into master Nov 4, 2026
27 checks passed
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.

2 participants