Add missing BTreeMap is metadata checking (#1653)

This commit is contained in:
Jaco Greeff
2019-12-09 10:14:12 +01:00
committed by GitHub
parent e5c20be666
commit 48ef5af93f
@@ -25,11 +25,10 @@ function extractTypes (types: string[]): any[] {
case TypeDefInfo.VecFixed:
return extractTypes([(decoded.ext as TypeDefExtVecFixed).type]);
case TypeDefInfo.BTreeMap:
case TypeDefInfo.Result:
case TypeDefInfo.Tuple:
return extractTypes(
(decoded.sub as TypeDef[]).map((sub): string => sub.type)
);
return extractTypes((decoded.sub as TypeDef[]).map((sub): string => sub.type));
default:
throw new Error(`Unhandled: Unable to create and validate type from ${type}`);