-
Notifications
You must be signed in to change notification settings - Fork 363
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
Type generation error for nested tuples: Unable to extract location of ';'
#5383
Comments
To add some context, it seems like the recursive handling inside |
Ummm, this is a weird one. (And strange we have not run into it before). Do you have a chain where we can generate a metadata bundle from to test against (i.e. either via curl or RPC call) |
It's not live yet, but here's the json file obtained from And the corresponding manual definitions used with it are here if you need them. |
Brilliant, the json link is exactly what is needed. (Not 100% sure about the definitions, it depends where it throws the error - but worst-case, can't hurt. I have been lucky in the past not needing them in some kind of reproductions) |
It throws while generating |
Closing on the back of #5395 - please comment if there are still issues. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
We have a storage type that has a key of type
((CurrencyId, CurrencyId), AccountId)
, i.e. it is a nested tuple. Type generation fails here:api/packages/types-create/src/util/getTypeDef.ts
Line 148 in 5cb6cf0
What seems to be happening is that this code creates the following
similarTypes
:Note the second item, which has the form
[value1, value2, value3]
. When setImports is then called,getTypeDef
gets called on that type, which callsdecodeFixedVec
, which expects something of the form[type; len]
so the error above is thrown (note the;
instead of a,
).The text was updated successfully, but these errors were encountered: