Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated error message and a test typo. #1871

Merged
merged 5 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bittensor/subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4415,7 +4415,7 @@ def make_substrate_call_with_retry():
result = make_substrate_call_with_retry()
except scalecodec.exceptions.RemainingScaleBytesNotEmptyException:
bittensor.logging.error(
"Your wallet it legacy formatted, you need to run btcli stake --ammount 0 to reformat it."
"Received a corrupted message. This likely points to an error with the network or subnet."
thewhaleking marked this conversation as resolved.
Show resolved Hide resolved
)
return Balance(1000)
return Balance(result.value["data"]["free"])
Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/test_subtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def test_stake_multiple():
# args, kwargs
_, kwargs = mock_do_stake.call_args

assert kwargs["ammount"] == pytest.approx(
assert kwargs["amount"] == pytest.approx(
mock_amount.rao, rel=1e9
) # delta of 1.0 TAO

Expand Down