Skip to content
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

feat: support configuring test account initial balance #2173

Merged
merged 3 commits into from
Jul 9, 2024

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Jul 9, 2024

What I did

This PR adds support for configuring test account initial balances from genesis using the test: config.
Both eth-tester and geth-dev honor this config.

Unblocks #264

releated:

hh: ApeWorX/ape-hardhat#175
anvil: ApeWorX/ape-foundry#105

How I did it

Add the config
honor it in the providers

How to verify it

connect to both test providers and check the balance(s) of the test accounts, it should be what you set it to.
You can also use currency strings in the config

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey merged commit 5d2db65 into ApeWorX:main Jul 9, 2024
19 checks passed
@antazoey antazoey deleted the feat/support-test-account-balance branch July 9, 2024 22:10
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.

2 participants