Skip to content

Commit 01ddfc7

Browse files
committed
Updates error message
1 parent fb34f07 commit 01ddfc7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: bittensor/core/extrinsics/staking.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def add_stake_multiple_extrinsic(
310310
isinstance(amount, (Balance, float, int)) for amount in amounts
311311
):
312312
raise TypeError(
313-
"amounts must be a [list of bittensor.Balance or float] or None"
313+
"amounts must be a [list of bittensor.Balance, float, or int] or None"
314314
)
315315

316316
if amounts is None:

Diff for: bittensor/core/extrinsics/unstaking.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def unstake_multiple_extrinsic(
270270
isinstance(amount, (Balance, float, int)) for amount in amounts
271271
):
272272
raise TypeError(
273-
"amounts must be a [list of bittensor.Balance or float] or None"
273+
"amounts must be a [list of bittensor.Balance, float, or int] or None"
274274
)
275275

276276
if amounts is None:

0 commit comments

Comments
 (0)