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
Invalid IDL Message #506
Comments
@krpeacock #470 is about receiving and decoding, while this is about encoding and sending.
The error is in bindsDuration, should be nat not string. |
fixed #633 |
agent-js/packages/candid/src/idl.ts
Line 1337 in 2fe3dd9
Is your feature request related to a problem? Please describe.
The error thrown from the above code is not very developer friendly. It's hard to read and figure where the problem is exactly. When you have a record with 10-15 fields, one can waste an hour, trying to figure it out. Not to mention the (Opt) = [ ], which a developer has to figure after searching the documentation and forums.
Describe the solution you'd like
Show exactly which field is causing the problem
Most peculiar things are mentioned in the docs, but I personally missed to see them. https://sdk.dfinity.org/docs/candid-guide/candid-types.html#type-variant
The text was updated successfully, but these errors were encountered: