From d587fc756b3e1709e61b1d364b4c83b9b9c32053 Mon Sep 17 00:00:00 2001 From: Nikita P Date: Tue, 12 Nov 2024 18:39:24 +0000 Subject: [PATCH 1/3] fix: not enough eth to make transaction --- tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 922e2263..111798ad 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -29,7 +29,7 @@ def shared_setup(fn_isolation): @pytest.fixture(scope="session", autouse=True) def network_gas_price(): - network.gas_price("2 gwei") + network.gas_price("99999999 gwei") @pytest.fixture(scope="function") def deployer(): @@ -260,7 +260,7 @@ def add_balance_check_middleware(): # TODO: Such implicit manipulation of the balances may lead to hard-debugging errors in the future. # Better to return back balance after request is done. def ensure_balance(address): - if web3.eth.get_balance(address) < ETH(1): + if web3.eth.get_balance(address) < ETH(1000000): set_balance(address, 1000000) def balance_check_middleware(make_request, web3): From 63cc9fe67bd6d6c37b8b1a6fb60ca5bfa04457cc Mon Sep 17 00:00:00 2001 From: Nikita P Date: Tue, 12 Nov 2024 18:40:42 +0000 Subject: [PATCH 2/3] fix: revert gas price --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 111798ad..5e017bee 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -29,7 +29,7 @@ def shared_setup(fn_isolation): @pytest.fixture(scope="session", autouse=True) def network_gas_price(): - network.gas_price("99999999 gwei") + network.gas_price("2 gwei") @pytest.fixture(scope="function") def deployer(): From b895c8d7daa20b4646645dec885e0c2323e2614d Mon Sep 17 00:00:00 2001 From: Nikita P Date: Tue, 12 Nov 2024 21:50:56 +0000 Subject: [PATCH 3/3] fix: eth check --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 5e017bee..b4ca025e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -260,7 +260,7 @@ def add_balance_check_middleware(): # TODO: Such implicit manipulation of the balances may lead to hard-debugging errors in the future. # Better to return back balance after request is done. def ensure_balance(address): - if web3.eth.get_balance(address) < ETH(1000000): + if web3.eth.get_balance(address) < ETH(10): set_balance(address, 1000000) def balance_check_middleware(make_request, web3):