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

Cheating the balance of the address / Cheating the caller of the contract with specific balance #2703

Open
cptartur opened this issue Nov 25, 2024 · 0 comments
Labels
design-doc feature New feature request/description snforge

Comments

@cptartur
Copy link
Member

Foundry has a cheatcode for cheating the caller address with a specific balance: https://book.getfoundry.sh/reference/forge-std/hoax?highlight=hoax#hoax

Design and implement one of the following:

  1. Cheatcode that changes the balance of the address for the specific call
  2. Cheatcode that changes the caller address and mocks the balance (extension of the https://foundry-rs.github.io/starknet-foundry/appendix/cheatcodes/caller_address.html)

Which version to implement should be decided through a design document.

@cptartur cptartur added design-doc feature New feature request/description snforge labels Nov 25, 2024
@cptartur cptartur moved this to New in Starknet foundry Nov 25, 2024
@github-actions github-actions bot added the new label Nov 25, 2024
@cptartur cptartur removed the new label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-doc feature New feature request/description snforge
Projects
Status: Backlog
Development

No branches or pull requests

1 participant