Commit 5d25100
Fix token-2022 metadata: use 8-byte discriminator for TokenMetadataInitialize
Token-2022 v7 encodes TokenMetadata/TokenGroup instructions using 8-byte
SHA256-based discriminators rather than simple 1-byte opcodes. The correct
discriminator for initialize_account is sha256("spl_token_metadata_interface:
initialize_account")[0..8] = [210, 225, 30, 162, 88, 184, 77, 141].
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a8f816e commit 5d25100
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
148 | | - | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| |||
0 commit comments