File tree Expand file tree Collapse file tree 2 files changed +0
-32
lines changed
bittensor/core/extrinsics Expand file tree Collapse file tree 2 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -71,14 +71,6 @@ async def transfer_stake_extrinsic(
71
71
"""
72
72
73
73
amount .set_unit (netuid = origin_netuid )
74
- # Verify ownership
75
- hotkey_owner = await subtensor .get_hotkey_owner (hotkey_ss58 )
76
- if hotkey_owner != wallet .coldkeypub .ss58_address :
77
- logging .error (
78
- f":cross_mark: [red]Failed[/red]: Hotkey: { hotkey_ss58 } does not belong to the origin coldkey owner: "
79
- f"{ wallet .coldkeypub .ss58_address } "
80
- )
81
- return False
82
74
83
75
# Check sufficient stake
84
76
stake_in_origin , stake_in_destination = await _get_stake_in_origin_and_dest (
@@ -194,14 +186,6 @@ async def swap_stake_extrinsic(
194
186
bool: True if the swap was successful, False otherwise.
195
187
"""
196
188
amount .set_unit (netuid = origin_netuid )
197
- # Verify ownership
198
- hotkey_owner = await subtensor .get_hotkey_owner (hotkey_ss58 )
199
- if hotkey_owner != wallet .coldkeypub .ss58_address :
200
- logging .error (
201
- f":cross_mark: [red]Failed[/red]: Hotkey: { hotkey_ss58 } does not belong to the origin coldkey owner: "
202
- f"{ wallet .coldkeypub .ss58_address } "
203
- )
204
- return False
205
189
206
190
# Check sufficient stake
207
191
stake_in_origin , stake_in_destination = await _get_stake_in_origin_and_dest (
Original file line number Diff line number Diff line change @@ -68,14 +68,6 @@ def transfer_stake_extrinsic(
68
68
"""
69
69
70
70
amount .set_unit (netuid = origin_netuid )
71
- # Verify ownership
72
- hotkey_owner = subtensor .get_hotkey_owner (hotkey_ss58 )
73
- if hotkey_owner != wallet .coldkeypub .ss58_address :
74
- logging .error (
75
- f":cross_mark: [red]Failed[/red]: Hotkey: { hotkey_ss58 } does not belong to the origin coldkey owner: "
76
- f"{ wallet .coldkeypub .ss58_address } "
77
- )
78
- return False
79
71
80
72
# Check sufficient stake
81
73
stake_in_origin , stake_in_destination = _get_stake_in_origin_and_dest (
@@ -192,14 +184,6 @@ def swap_stake_extrinsic(
192
184
"""
193
185
194
186
amount .set_unit (netuid = origin_netuid )
195
- # Verify ownership
196
- hotkey_owner = subtensor .get_hotkey_owner (hotkey_ss58 )
197
- if hotkey_owner != wallet .coldkeypub .ss58_address :
198
- logging .error (
199
- f":cross_mark: [red]Failed[/red]: Hotkey: { hotkey_ss58 } does not belong to the origin coldkey owner: "
200
- f"{ wallet .coldkeypub .ss58_address } "
201
- )
202
- return False
203
187
204
188
# Check sufficient stake
205
189
stake_in_origin , stake_in_destination = _get_stake_in_origin_and_dest (
You can’t perform that action at this time.
0 commit comments