Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
gztensor committed Sep 25, 2024
1 parent 05df58b commit 5b889d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/e2e_tests/subcommands/stake/test_stake_add_remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ def test_stake_add(local_chain):
# Ensure fees are not withdrawn for the add_stake extrinsic, i.e. balance is exactly lower by stake amount
acc_after = local_chain.query("System", "Account", [wallet.coldkey.ss58_address])
assert (
acc_before.value["data"]["free"] - acc_after.value["data"]["free"] == stake_amount * 1_000_000_000
acc_before.value["data"]["free"] - acc_after.value["data"]["free"]
== stake_amount * 1_000_000_000
), f"Expected no transaction fees for add_stake"

# we can test remove after set the stake rate limit larger than 1
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e_tests/subcommands/wallet/test_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_transfer(local_chain):
), f"Expected transfer with tolerance: {expected_transfer} <= {actual_difference} <= {expected_transfer + tolerance}"

# Ensure the transaction fees are withdrawn
fees_lower_boundary = 50_000 # Transfer fees should be at least 50 microTAO
fees_lower_boundary = 50_000 # Transfer fees should be at least 50 microTAO
assert (
expected_transfer + fees_lower_boundary <= actual_difference
), f"Expected transfer fees: {expected_transfer + fees_lower_boundary} <= {actual_difference}"
Expand Down

0 comments on commit 5b889d6

Please sign in to comment.