-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Unable to read SRC7 metadata via the TS SDK #1880
Comments
@Dhaiwat10 I was investigating this yesterday and I am going to share my findings with you: Just like we already validated, setting the The So when setting a On the forum post, the error is happening when using the 1 const metadata = {
Int: 100,
} 2 const metadata = {
B256: getRandomB256(),
} 3 const metadata = {
Bytes: [40, 41, 42],
} It is weird that the returned value by the fn
4 const metadata = {
String: "fuel",
} I am inclined to believe that the problem here is not coming from the TS-SDK side. I hope these findings might help you in some way 🫡 |
Thanks @Torres-ssf, that is indeed super helpful information. My investigations are giving me similar feelings as well. I am especially skeptical about this being a TS SDK issue in the first place because the transaction to read something is reverting. If there was a problem in the encoding/decoding logic of the TS SDK, you would expect the Your finding about |
The problem here is that |
@danielbate, when will there be a release with this fixed? |
@chappie1998 I'm afraid we can't give an exact release date for this at the moment. The new encoding scheme is part of a wider piece of work, so requires aligning changes and releases with many products in our eco-system. But as you can see, it is in active development and we will keep this issue up to date and can coordinate with yourself. #1672 also details the |
Hey, @danielbate, are these changes out with the latest release on both the sway and SDK side? |
So this was included in As the flag suggests, this work is currently experimental so you may experience some unexpected behaviour, but it would be really helpful for you to try it out and feedback any problems. One issue we are already aware of tho, is that it currently does not support |
When we try to read
Metadata
from a SRC7-compliant contract, the SDK crashes with the following error:Setting
Metadata
works fine though.The text was updated successfully, but these errors were encountered: