Skip to content

feat(plugins/execute): Deferred eoa funding #1566

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

marioevz
Copy link
Member

@marioevz marioevz commented May 6, 2025

🗒️ Description

Deferred EOA Funding

Adds deferred funding of the EOAs and Deployed contracts, to allow calculating how much value the funding account must have before sending the txs.

Live Gas Prices Usage

Fetch the gas price on real time before sending the transaction to the network.

Dry-Run Mode

Introduce dry-run mode to allow pre-calculating how much eth is required to run any of the tests:

2025-05-06 15:47:23.648+00:00 [INFO] pytest_plugins.logging.logging: ℹ️  - START TEST: tests/prague/eip7702_set_code_tx/test_eip_mainnet.py::test_eip_7702[fork_Prague-state_test]
2025-05-06 15:47:23.831+00:00 [INFO] pytest_plugins.execute.execute: Minimum balance required: 0.000828871322948070
2025-05-06 15:47:23.831+00:00 [INFO] pytest_plugins.execute.execute: Max gas consumption: 132878
2025-05-06 15:47:23.831+00:00 [INFO] pytest_plugins.logging.logging: ✅ - PASSED in 0.00s: tests/prague/eip7702_set_code_tx/test_eip_mainnet.py::test_eip_7702[fork_Prague-state_test]

And also print a total for all selected tests:

2025-05-06 15:47:23.832+00:00 [INFO] pytest_plugins.execute.execute: Total gas limit: 1401054
2025-05-06 15:47:23.832+00:00 [INFO] pytest_plugins.execute.execute: Total minimum balance: 0.009197924844059697

🔗 Related Issues

✅ Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.
  • Tests: All converted JSON/YML tests from ethereum/tests have been added to converted-ethereum-tests.txt.
  • Tests: A PR with removal of converted JSON/YML tests from ethereum/tests have been opened.
  • Tests: Included the type and version of evm t8n tool used to locally execute test cases: e.g., ref with commit hash or geth 1.13.1-stable-3f40e65.
  • Tests: Ran mkdocs serve locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant