Skip to content

Commit bd588a0

Browse files
author
Roman
committed
update async def subnet
1 parent aa63fd7 commit bd588a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bittensor/core/async_subtensor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3427,7 +3427,8 @@ async def subnet(
34273427
)
34283428

34293429
if isinstance(decoded := query.decode(), dict):
3430-
return DynamicInfo.from_dict(decoded)
3430+
price = self.get_subnet_price(netuid=netuid, block=block)
3431+
return DynamicInfo.from_dict({**decoded, "price": price})
34313432
return None
34323433

34333434
async def subnet_exists(

0 commit comments

Comments
 (0)