Skip to content

Commit

Permalink
fix precompiled contract balance changing
Browse files Browse the repository at this point in the history
  • Loading branch information
kristinaNikolaevaa authored and afalaleev committed Feb 21, 2025
1 parent c335537 commit b4fa416
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions integration/tests/basic/evm/test_precompiled_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ def test_call_via_send_trx(
if pytestconfig.getoption("--network") == "devnet" and address == "0x0000000000000000000000000000000000000005":
pytest.skip("Doesn't work in devnet/mainnet")
sender_account = self.accounts[0]
amount = random.choice([0, 10])
if address == "0x0000000000000000000000000000000000000007":
amount = random.choice([1, 10])
else:
amount = 0
balance_before = self.web3_client.get_balance(address)

instruction_tx = self.web3_client.make_raw_tx(
Expand Down Expand Up @@ -161,9 +164,8 @@ def test_call_via_send_trx(
assert "InvalidLength" in exc.args[0]["message"]

@pytest.mark.xdist_group("precompiled_contract_balance")
@pytest.mark.parametrize("contract", PRECOMPILED_FIXTURES)
def test_send_neon_without_data(self, contract, pytestconfig):
address = PRECOMPILED_FIXTURES[contract]["address"]
def test_send_neon_without_data(self, pytestconfig):
address = "0x0000000000000000000000000000000000000006"
sender_account = self.accounts[0]
balance_before = self.web3_client.get_balance(address)
amount = random.randint(1, 10)
Expand Down

0 comments on commit b4fa416

Please sign in to comment.