solana-labs/solana-program-library
[token-js] InitializeMint without FreezeAuthority breaks decodeInitializeMintInstruction
Aperta
#7549 aperta il 3 dic 2024
good first issue
Metriche repository
- Star
- (4236 stelle)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
Example tx: 2LQT3oZSoAyrzAC59wfMfbiZtF74YPcw5rQuaAmBu1FhuVe1f3CZoms8wKETJYVx8q9Bi8wT8v337iMDg4PJysF2
The problem is caused by exact span check here
Proposed solution: check if length of the data is equal to 35 (data with empty freeze authority) or 67 (freeze authority exists) bytes