Commit 21b7d7c
committed
fix(token-extensions/group): re-enable group anchor + quasar examples
Both were excluded as "not live", but the real blockers were build/code bugs:
- group/anchor: a dead `spl-token-group-interface = "0.2.5"` dependency (never
imported in code — the GroupPointer types come from anchor_spl::token_2022)
transitively pinned an old solana-zk-token-sdk that conflicts with
ed25519-dalek 2 on `zeroize`, breaking `cargo build-sbf`. Removed the dep;
the program now builds and its LiteSVM test passes.
- group/quasar: three bugs in src/lib.rs — `Program<System>` should be
`Program<SystemProgram>` (compile error); the GroupPointer extension opcode
was 41 (that's GroupMemberPointer) instead of 40; and the mint account was
allocated 250 bytes instead of 234 (base 82 padded to 165 + 1 account-type
byte + GroupPointer TLV of 2+2+64), which made InitializeMint2 fail with
InvalidAccountData. Fixed all three; builds and both tests pass.
Drop both from .github/.ghaignore so CI builds and tests them.1 parent 8325ed7 commit 21b7d7c
3 files changed
Lines changed: 8 additions & 11 deletions
File tree
- .github
- tokens/token-extensions/group
- anchor/programs/group
- quasar/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 22 | | |
27 | 23 | | |
28 | 24 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
66 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
0 commit comments