Commit 6049b57
Fix metadata MetadataPointerInstruction encoding: use PodCOption (4-byte flags)
The MetadataPointerInstruction::Initialize uses PodCOption<Pubkey> which
encodes with a 4-byte LE flag ([1,0,0,0] for Some) + 32-byte pubkey,
making each field 36 bytes. Total instruction: 74 bytes.
Previous attempts used 1-byte COption flags (66 and 68 bytes), which
caused InvalidInstructionData because the validator requires exactly
[1,0,0,0] or [0,0,0,0] for the 4-byte option field.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1ede0be commit 6049b57
1 file changed
Lines changed: 9 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
104 | 105 | | |
105 | 106 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
| |||
0 commit comments