paritytech/substrate-api-sidecar

Refactor code to remove instances of `createType`

Imod7 opened this issue · 0 comments

Description
Using as a reference this comment that advises against the use of createType, we should replace all instances of createType in this repo. The changes should happen gradually and in small individual PRs to avoid breaking any existing functionality and testing thoroughly.

Example
This modification was implemented in this PR and can serve as an example for the rest of the replacements.

Credits
Special thanks to @TarikGul for reviewing the aforementioned PR and for suggesting this change (comment).