Fix packages/types/src/codec/utils/encodeTypes.ts encodeSubTypes bug (#1544)

This commit is contained in:
Xat_MassacrE
2019-11-05 10:27:00 +01:00
committed by Jaco Greeff
parent 56dc116d92
commit fcf89d1501
@@ -38,7 +38,7 @@ function encodeSubTypes (sub: TypeDef[], asEnum?: boolean): string {
sub
.map((type: TypeDef): string => `"${type.name}": "${encodeWithParams(type)}"`)
.join(', ')
}} }`;
}${asEnum ? '" }"' : ''} }`;
}
function encodeEnum (typeDef: Pick<TypeDef, any>): string {