Skip to content

Commit 9a7524e

Browse files
committed
fix type
1 parent be9808d commit 9a7524e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bittensor/core/axon.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ async def preprocess(self, request: "Request") -> "Synapse":
12671267
# Fills the local axon information into the synapse.
12681268
synapse.axon.__dict__.update(
12691269
{
1270-
"version": str(version_as_int),
1270+
"version": int(version_as_int),
12711271
"uuid": str(self.axon.uuid),
12721272
"nonce": time.time_ns(),
12731273
"status_code": 100,
@@ -1276,7 +1276,7 @@ async def preprocess(self, request: "Request") -> "Synapse":
12761276

12771277
# Fills the dendrite information into the synapse.
12781278
synapse.dendrite.__dict__.update(
1279-
{"port": str(request.client.port), "ip": str(request.client.host)} # type: ignore
1279+
{"port": int(request.client.port), "ip": str(request.client.host)} # type: ignore
12801280
)
12811281

12821282
# Signs the synapse from the axon side using the wallet hotkey.

0 commit comments

Comments
 (0)