solana-labs/solana-program-library

[token-js] InitializeMint without FreezeAuthority breaks decodeInitializeMintInstruction

開放

#7,549 建立於 2024年12月3日

 (4 則留言) (1 個反應) (0 位負責人)Rust (2,401 個分叉)auto 404
good first issue

倉庫指標

星標
 (4,236 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南