RuntimeMetadata.fromHex constructor

RuntimeMetadata.fromHex(
  1. String hex
)

Implementation

factory RuntimeMetadata.fromHex(String hex) {
  final decodedMetadata = MetadataDecoder.instance.decode(hex);
  return RuntimeMetadata(
    version: decodedMetadata.version,
    metadata: decodedMetadata.metadata,
    chainInfo: ChainInfo.fromMetadata(decodedMetadata),
  );
}