Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 8 additions & 0 deletions scale-codec/src/types-codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,14 @@ export function getCodecType(types: Type[], ti: Ti): CodecType {
case TypeKind.Primitive:
assert(type.primitive[0] == 'U')
return {kind: TypeKind.Compact, integer: type.primitive}
case TypeKind.Composite:
return {
kind: TypeKind.Struct,
fields: type.fields.map(f => {
let name = assertNotNull(f.name)
return {name, type: f.type}
})
}
default:
throwUnexpectedCase(type.kind)
}
Expand Down
2 changes: 1 addition & 1 deletion substrate-ingest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ kusama:
-c 20 \
--prom-port 0 \
--write-batch-size 30 \
--start-block 13846889
--start-block 14645899


kintsugi:
Expand Down