-
Notifications
You must be signed in to change notification settings - Fork 150
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
fix: update errors endpoint to use latest error metadata for fetchErrorItem #1205
Conversation
Whats the exact issue happening here with the types? |
There isn't an issue with these types remaining as is actually. It would just be a change to keep the return types of the errors endpoints more consistent with each other. It doesn't change any logic for the api so if preferred we can leave this unchanged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
- Just to double check we still need the
| Option<PalletErrorMetadataV14> {
in line 43 (src/services/AbstractPalletsService.ts
file) right ? - On that part of code why in line 51 we hardcode 'errors' ?
We could again just use
return this.getProperty(meta as PalletMetadataV14, 'errors');
metadataFieldType
right ? So maybe havereturn this.getProperty(meta as PalletMetadataV14, metadataFieldType);
- One last question : why we did not use
ErrorMetadataLatest
since the beginning ?
Yes, we still need the reference to The
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the explanations! 💯
No description provided.