Repository navigation
Core: cover V1 workflow failure-log decoding - #243
Merged
zo-sol merged 3 commits intoSep 16, 2026
Merged
Conversation
The solana-sdk is moving to Solana v1 transactions (IQCoreTeam/iqlabs-solana-sdk#22). Readers break first: a getTransaction that asks for maxSupportedTransactionVersion 0 is refused for a v1 tx, and web3.js 1.98 cannot parse a version 1 response at all, its TransactionVersion struct only knows 'legacy' and 0. Writers can lag; readers cannot. Move the one AgentNet-owned read site, txErrorDetail in nft/workflow.ts, from 0 to 1 so the failure logs it fetches for our own just-sent tx keep working once those are v1, and pin @solana/web3.js at ^1.99.0 in core (peer and dev) and mcp so every bundle that inlines core carries a parser that accepts version 1. The lockfile resolves to a single web3.js 1.99.0 that the sdk 0.1.28 dependency dedupes onto; the rest of the lock churn is that package's own subtree (codecs-numbers 5.5.1, bn.js 5.2.5). The existing sendTx regression now asserts the version option instead of only that getTransaction was called. The @iqlabs-official/solana-sdk pin stays at ^0.1.28: the release with v1 readers (feat/v1-tx-4096) is not published yet, and 0.1.28's readTableRows and readCodeIn still ask for version 0 internally, so the two SDK fallbacks in core/chain.ts (readRowsByPda, readCodeIn) keep that limit until the pin can move.
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.
The workflow failure-log reader now supports V1 on main. This PR adds regression coverage to keep failed transactions readable across legacy, v0 and v1 responses.
The tests pass response fixtures through the real web3.js decoder and assert both the requested version cap and preservation of the on-chain failure logs. The diff against main is one test file; runtime code, SDK versions and the lockfile match Zo's V1 rollout in e918738.
Validation at 326babd: frozen pnpm 9.15.9 install, all six workflow tests, core TypeScript check and diff whitespace check passed on Node 24.18.0. Hosted test-and-build CI also passed. No transactions were submitted by these tests.