Skip to content

Commit f3ae1a3

Browse files
authored
Merge branch 'opentensor:master' into PATCH-reflect-correct-types-for-get_delegated
2 parents ad9aa79 + 1dc8d82 commit f3ae1a3

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

tests/e2e_tests/test_delegate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def test_nominator_min_required_stake(
342342
wallet=dave_wallet,
343343
hotkey_ss58=bob_wallet.hotkey.ss58_address,
344344
netuid=alice_subnet_netuid,
345-
amount=Balance.from_tao(1000),
345+
amount=Balance.from_tao(10_000),
346346
wait_for_inclusion=True,
347347
wait_for_finalization=True,
348348
)

tests/e2e_tests/test_stake_fee.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async def test_stake_fee_api(local_chain, subtensor, alice_wallet, bob_wallet):
1919
netuid = 2
2020
root_netuid = 0
2121
stake_amount = Balance.from_tao(100) # 100 TAO
22-
min_stake_fee = Balance.from_tao(0.050354772)
22+
min_stake_fee = Balance.from_tao(0.299076829)
2323

2424
# Register subnet as Alice
2525
assert subtensor.register_subnet(alice_wallet), "Unable to register the subnet"
@@ -32,9 +32,9 @@ async def test_stake_fee_api(local_chain, subtensor, alice_wallet, bob_wallet):
3232
coldkey_ss58=alice_wallet.coldkeypub.ss58_address,
3333
hotkey_ss58=alice_wallet.hotkey.ss58_address,
3434
)
35-
assert isinstance(stake_fee_0, Balance), "Stake fee should be a Balance object."
35+
assert isinstance(stake_fee_0, Balance), "Stake fee should be a Balance object"
3636
assert stake_fee_0 == min_stake_fee, (
37-
"Stake fee should be equal the minimum stake fee."
37+
"Stake fee should be equal the minimum stake fee"
3838
)
3939

4040
# Test unstake fee
@@ -44,11 +44,9 @@ async def test_stake_fee_api(local_chain, subtensor, alice_wallet, bob_wallet):
4444
coldkey_ss58=alice_wallet.coldkeypub.ss58_address,
4545
hotkey_ss58=bob_wallet.hotkey.ss58_address,
4646
)
47-
assert isinstance(unstake_fee_root, Balance), (
48-
"Stake fee should be a Balance object."
49-
)
50-
assert unstake_fee_root == min_stake_fee, (
51-
"Root unstake fee should be equal the minimum stake fee."
47+
assert isinstance(unstake_fee_root, Balance), "Stake fee should be a Balance object"
48+
assert unstake_fee_root == Balance.from_rao(299076829), (
49+
"Root unstake fee should be 0."
5250
)
5351

5452
# Test various stake movement scenarios

0 commit comments

Comments
 (0)