We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0759859 commit 55cf9baCopy full SHA for 55cf9ba
apex/common/async_chain.py
@@ -112,11 +112,13 @@ def network(self) -> list[str]:
112
113
async def full_burn(self) -> bool:
114
try:
115
+ metagraph = await self.metagraph()
116
subtensor = await self.subtensor()
117
netuid = 1
118
owner_hotkey = await subtensor.query_subtensor("SubnetOwnerHotkey", params=[netuid])
- logger.info(f"Burning to {owner_hotkey} UID")
119
- uids: list[int] = [owner_hotkey]
+ owner_uid = await metagraph.hotkeys.index(owner_hotkey)
120
+ logger.info(f"Burning to {owner_hotkey} hotkey, {owner_uid} UID")
121
+ uids: list[int] = [owner_uid]
122
weights: list[float] = [1.0]
123
success, message = await subtensor.set_weights(
124
self.wallet,
0 commit comments