-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Comments
Thanks for reporting! This is indeed an issue, and your proposed solution makes sense. |
+1! This occurs also with The length of data is 35, but the decoding function expects 67. |
Same applies in |
PR #7627 should now fix everything |
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
The text was updated successfully, but these errors were encountered: