fromMetadata static method
Implementation
static ChainInfo fromMetadata(DecodedMetadata metadata,
[LegacyTypes? legacyTypes]) {
if (metadata.isPreV14) {
assertion(legacyTypes != null,
'Legacy types are required for metadata versions below 14');
return LegacyParser(metadata, legacyTypes!).getChainInfo();
}
return V14Parser(metadata).getChainInfo();
}