Skip to content

Commit bc0a478

Browse files
author
Roman
committed
add name and symbol fields to metagraph
1 parent 6d17860 commit bc0a478

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bittensor/core/metagraph.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ class MetagraphMixin(ABC):
258258
_dtype_registry = {"int64": np.int64, "float32": np.float32, "bool": bool}
259259

260260
# metagraph_info fields
261+
name: str
262+
symbol: str
261263
identities: list[Optional["ChainIdentity"]]
262264
identity: Optional["SubnetIdentity"]
263265
pruning_score: list[float]
@@ -937,6 +939,8 @@ def _apply_metagraph_info_mixin(self, metagraph_info: "MetagraphInfo"):
937939
metagraph_info (MetagraphInfo): An instance of the MetagraphInfo class containing the data to be applied to
938940
the current object.
939941
"""
942+
self.name = metagraph_info.name
943+
self.symbol = metagraph_info.symbol
940944
self.identities = metagraph_info.identities
941945
self.identity = metagraph_info.identity
942946
self.pruning_score = metagraph_info.pruning_score

0 commit comments

Comments
 (0)