Skip to content

Commit 3ee5f60

Browse files
mikemaccanaclaude
andcommitted
Fix anchor CI: surfpool, transfer-hook API, DecodeError, fixture files
- Install surfpool in CI (Anchor 1.0.0 uses it by default for anchor test) - Fix transfer-hook programs (whitelist, counter, hello-world, transfer-cost): replace InitializeExtraAccountMetaList::extra_account_metas/count() with direct calls to handle_extra_account_metas/count() free functions; Anchor 1.0.0 no longer auto-generates these as struct-associated methods - Update Cargo.lock for nft-operations and token-fundraiser: bump solana-signature 3.3.0→3.4.0 to fix five8 1.0.0 DecodeError conflict - Add missing mpl_token_metadata.so fixtures (nft-minter, nft-operations, pda-mint-authority, spl-token-minter, transfer-tokens); Anchor 1.0.0 IDL build compiles test files at build time, requiring include_bytes! fixtures Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6b71a40 commit 3ee5f60

12 files changed

Lines changed: 4225 additions & 195 deletions

File tree

.github/workflows/anchor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,13 +111,16 @@ jobs:
111111
with:
112112
anchor-version: 1.0.0
113113
solana-cli-version: stable
114+
- name: Install Surfpool
115+
run: curl -sL https://run.surfpool.run/ | bash
114116
- name: Display Versions
115117
run: |
116118
solana -V
117119
# it's okay to use --force in github action since all programs are tested in isolation
118120
solana-keygen new --no-bip39-passphrase --force
119121
rustc -V
120122
anchor -V
123+
surfpool --version
121124
- name: Build and Test
122125
env:
123126
TOTAL_PROJECTS: ${{ needs.changes.outputs.total_projects }}
775 KB
Binary file not shown.

0 commit comments

Comments
 (0)