Skip to content

compression: use solana-kite in the tests - #127

Merged
mikemaccana merged 1 commit into
claude/anchor-v2-migration-d5hkh4from
claude/compression-tests-use-kite
Aug 20, 2026
Merged

compression: use solana-kite in the tests#127
mikemaccana merged 1 commit into
claude/anchor-v2-migration-d5hkh4from
claude/compression-tests-use-kite

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

Stacked on #123. Retarget to main once that merges, and do not merge this into a dead branch. It rewrites the v2 versions of these test files, so it needs the port underneath it.

Six files. These three were the only Anchor projects not using solana-kite, and each had hand-rolled a send helper that is kite's send_transaction_from_instructions statement for statement: build a Message, take the blockhash, sign, send, map the result. Three copies of a function already available from a dependency the other 52 projects use.

Wallet setup goes the same way: Keypair::new() followed by svm.airdrop(...) is what create_wallet does.

assert_custom_error in cnft-vault now takes kite's SolanaKiteError. It was already matching on the text of the debug-formatted failure for Custom(N), and kite wraps the same FailedTransactionMetadata debug output, so the assertion checks exactly what it did before.

Net 114 lines removed, 73 added. The Bubblegum fixtures, the keccak hash recomputation, the Merkle proof building and the borsh mirror structs are untouched: those are the bulk of these files and kite has nothing to say about them.

Verification

cnft-burn 3 tests, cnft-vault 6, cutils 3, all passing.


Generated by Claude Code

These three were the only Anchor projects not using solana-kite, and each had
hand-rolled a `send` helper that is kite's `send_transaction_from_instructions`
statement for statement: build a Message, take the blockhash, sign, send, map
the result. Three copies of a function already available from a dependency the
other 53 projects use.

Wallet setup goes the same way: `Keypair::new()` followed by `svm.airdrop(...)`
is what `create_wallet` does.

`assert_custom_error` in cnft-vault now takes kite's `SolanaKiteError`. It was
already matching on the text of the debug-formatted failure for `Custom(N)`,
and kite wraps the same `FailedTransactionMetadata` debug output, so the
assertion checks exactly what it did before.

The Bubblegum fixtures, the keccak hash recomputation, the Merkle proof
building and the borsh mirror structs are untouched. Those are the bulk of
these files and kite has nothing to say about them.

Tests: cnft-burn 3, cnft-vault 6, cutils 3.
(cherry picked from commit 0726129)
@mikemaccana
mikemaccana force-pushed the claude/compression-tests-use-kite branch from e05e99a to 978e1b6 Compare August 19, 2026 23:28
@mikemaccana
mikemaccana merged commit 846e1f9 into claude/anchor-v2-migration-d5hkh4 Aug 20, 2026
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