BTreeSet only has single sub (#2114)

This commit is contained in:
Jaco Greeff
2020-03-28 21:55:49 +01:00
committed by GitHub
parent 50b551e4fc
commit 7b8b4e8078
3 changed files with 5 additions and 4 deletions
@@ -17,6 +17,7 @@ function extractTypes (types: string[]): any[] {
case TypeDefInfo.Plain:
return decoded.type;
case TypeDefInfo.BTreeSet:
case TypeDefInfo.Compact:
case TypeDefInfo.Option:
case TypeDefInfo.Vec:
@@ -24,7 +25,7 @@ function extractTypes (types: string[]): any[] {
return extractTypes([(decoded.sub as TypeDef).type]);
case TypeDefInfo.BTreeMap:
case TypeDefInfo.BTreeSet:
case TypeDefInfo.HashMap:
case TypeDefInfo.Result:
case TypeDefInfo.Tuple:
return extractTypes((decoded.sub as TypeDef[]).map((sub): string => sub.type));