Commit 5dab3ae
Fix metadata MetadataPointerInstruction: use OptionalNonZeroPubkey (66 bytes)
token-2022-v7.0.0 uses OptionalNonZeroPubkey (32-byte raw pubkey, not
COption/PodCOption flags) for both authority and metadata_address fields.
Correct format: [39, 0, authority(32), metadata_address(32)] = 66 bytes.
Previous attempts with 68 bytes (1-byte flags) and 74 bytes (4-byte
PodCOption flags) both fail because the struct expects exactly 64 bytes
of payload after the 2-byte header.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6049b57 commit 5dab3ae
1 file changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 107 | + | |
| 108 | + | |
113 | 109 | | |
114 | 110 | | |
115 | 111 | | |
| |||
0 commit comments