solana-labs/solana-program-library

[token-js] InitializeMint without FreezeAuthority breaks decodeInitializeMintInstruction

Ouverte

#7 549 ouverte le 3 déc. 2024

 (4 commentaires) (1 réaction) (0 personne assignée)Rust (2 401 forks)auto 404
good first issue

Métriques du dépôt

Stars
 (4 236 étoiles)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

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

Guide contributeur