fix(sdk-coin-sol): recognize Token ACL thaw in WASM explain - #9692
Merged
Conversation
Contributor
Contributor
|
|
Ranjna-G
approved these changes
Sep 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TICKET: CSHLD-1182
Token enablement (and transfer) prebuilds for Token-2022 mints gated by the sRFC-37 Token ACL program append a ThawPermissionlessIdempotent instruction (program TACLkU6..., discriminator 9) after the ATA-init /TokenTransfer. The JS-side classifier (getInstructionType) knows this program, but the WASM explain path (tsol) does not: @bitgo/wasm-solana
parses the instruction as Unknown, and deriveTransactionType falls through to CustomTx, so verifyTxType rejects enablement with: Invalid transaction type on token enablement: expected "AssociatedTokenAccountInitialization", got "CustomTx".
Mirror the JS-side handling in explainTransactionWasm.ts: treat Unknown instructions from the Token ACL program like boilerplate — excluded from the meaningful-instruction ATA check and from the Unknown->CustomTx trigger (which also fixes token transfers carrying the thaw, previously misclassified as CustomTx instead of Send).
Verified against sdk-coin-sol 8.8.0 on a devnet Token-2022 mint (TransferHook + DefaultAccountState frozen + Token ACL permissionless thaw enabled):