Skip to content

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

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

compression: use solana-kite in the tests#129
mikemaccana merged 1 commit into
mainfrom
claude/compression-tests-use-kite-v2

Conversation

@mikemaccana

Copy link
Copy Markdown
Collaborator

Replaces #127, whose content never reached main. That PR shows as merged, but its base was claude/anchor-v2-migration-d5hkh4 rather than main, and that branch had already merged, so the merge went into a dead branch. This branch is off main and carries the same six-file change.

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)
(cherry picked from commit 978e1b6)
@mikemaccana
mikemaccana merged commit c79914e into main Aug 20, 2026
26 of 28 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