lisk-sdk
lisk-sdk copied to clipboard
Create and use util functions for converting response to JSON format for RPC endpoints
Description
In order to be consistent and to avoid duplicity, create and use util functions for converting response to JSON format for RPC endpoints.
For example,
convertBFTParametersToJSON(bftParameters: BFTParameters): BFTParametersJSON
Acceptance Criteria
- Add unit tests for each util function
If there is an schema, codec.toJSON can be used?
Closing this issue for no activity