Skip to content

fix(libs): set maxSupportedTransactionVersion on Wormhole getTransaction - #14598

Closed
rickyrombo wants to merge 1 commit into
mainfrom
audit/solana-tx-v1
Closed

rickyrombo wants to merge 1 commit into
mainfrom
audit/solana-tx-v1

Conversation

@rickyrombo

Copy link
Copy Markdown
Contributor

Why

Helius flagged getTransaction calls that do not set maxSupportedTransactionVersion ahead of Transaction v1 activating on mainnet (2026-09-15). This is the only unconfigured getTransaction call in this repo; the live Solana indexer lives in the api repo (see AudiusProject/api#1040).

What

Wormhole.ts in the legacy SDK now passes { maxSupportedTransactionVersion: 0 }. web3.js 1.98 can only decode legacy and v0 messages, and this call only re-reads the legacy transaction relayed a few lines earlier, so it can never hit a v1 transaction. The value makes the client's capability explicit rather than relying on the RPC default.

Sending 1 here would require migrating the legacy SDK to web3.js v3 or Kit, which is out of scope. I found no caller of this Wormhole flow in web or mobile.

Verification

  • tsc --noEmit and eslint pass for packages/libs.

🤖 Generated with Claude Code

Transaction v1 activates on Solana mainnet on 2026-09-15. RPC providers now
require getTransaction callers to declare the highest transaction version they
can decode. web3.js 1.x decodes legacy and v0 only, and the transaction fetched
here is the legacy transaction relayed just before, so 0 is the correct value.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented Sep 15, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: dfac3dd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@rickyrombo

Copy link
Copy Markdown
Contributor Author

dead code

@rickyrombo rickyrombo closed this Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant