Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
config: Enhance CUSTOM_TYPES to take AnyJson
If a pallet is updating a block with type Json, the Record<string, string>
is not going to meet the needs.
Enhancing the type of the CUSTOM_TYPES to take json object with
`AnyJson` type would fix the issues.

Signed-off-by: Amar Tumballi <[email protected]>
  • Loading branch information
amarts committed Dec 2, 2020
commit 09585fba8caa0c2f91ad2bbc56adec6d4c53208e
4 changes: 3 additions & 1 deletion src/types/config/SidecarConfig.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { AnyJson } from '@polkadot/types/types';

/**
* Object to house the values of all the configurable components for Sidecar.
*/
Expand All @@ -9,7 +11,7 @@ export interface ISidecarConfig {

interface ISidecarConfigSubstrate {
WS_URL: string;
CUSTOM_TYPES: Record<string, string> | undefined;
CUSTOM_TYPES: AnyJson;
}

interface ISidecarConfigExpress {
Expand Down