Skip to content

feat: implement add_balance endpoint #10636

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

Merged

Conversation

pistomat
Copy link
Contributor

Motivation

Adds an addBalance anvil endpoint as a convenience endpoint to bring on par with Tenderly endpoints https://docs.tenderly.co/virtual-testnets/admin-rpc#tenderly_addbalance

Solution

Simple fetch of current balance and increase using the existing setBalance endpoint.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@yash-atreya yash-atreya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@zerosnacks zerosnacks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! lgtm

@zerosnacks zerosnacks merged commit b1f8767 into foundry-rs:master May 26, 2025
22 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry May 26, 2025
Dargon789 pushed a commit to Dargon789/foundry that referenced this pull request May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants