paritytech / substrate-api-sidecar

REST service that makes it easy to interact with blockchain nodes built using Substrate's FRAME framework.

Home Page:https://paritytech.github.io/substrate-api-sidecar/dist/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor code to remove instances of `createType`

Imod7 opened this issue · 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).