bittensor icon indicating copy to clipboard operation
bittensor copied to clipboard

Add transaction fee tests

Open gztensor opened this issue 5 months ago • 0 comments

Description of the Change

Modified e2e tests to check that

  • Non-zero transaction fee is applied for balance transfers
  • No transaction fee is applied for add_stake extrinsic

Quantitative Performance Benefits

Not relevant. We don't have a template for adding tests.

Possible Drawbacks

If later we decide to lower transaction fees for balance transfers (e.g. to high TAO price), we will have to maintain this test.

Verification Process

Run:

LOCALNET_SH_PATH=<---=== replace with your path to subtensor repository===--- >/subtensor/scripts/localnet.sh pytest ./tests/e2e_tests/subcommands/wallet/test_transfer.py

LOCALNET_SH_PATH=<---=== replace with your path to subtensor repository===--- >/subtensor/scripts/localnet.sh pytest ./tests/e2e_tests/subcommands/stake/test_stake_add_remove.py

Applicable Issues

https://github.com/orgs/opentensor/projects/19/views/7?pane=issue&itemId=80965602

Release Notes

This is subtensor e2e test, no release notes should be added for BitTensor.

gztensor avatar Sep 24 '24 22:09 gztensor