Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[token-js] InitializeMint without FreezeAuthority breaks decodeInitializeMintInstruction #7549

Open
devDesu opened this issue Dec 3, 2024 · 1 comment
Labels
good first issue Good for newcomers

Comments

@devDesu
Copy link

devDesu commented Dec 3, 2024

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

@joncinque joncinque added the good first issue Good for newcomers label Dec 3, 2024
@joncinque
Copy link
Contributor

Thanks for reporting! This is indeed an issue, and your proposed solution makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants