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

removed alternative deal function within the Cheatcodes interface #998

Merged
merged 3 commits into from
Oct 25, 2023

Conversation

Autosaida
Copy link
Contributor

Noted that the deal function in the cheatcodes interface allows for modifying ERC-20 token balances. However, based on the current implementation of forge-std, this function isn't directly provided by the VM (which can only change native token balances like ETH). Instead, it's implemented in StdCheats.sol and utilized not through VM calls but directly in test (with support for various ERC standard tokens already added).
This clarification is provided to address potential confusion, which I encountered.

@Evalir Evalir changed the title Resolved confusion in deal function within the Cheatcodes interface removed alternative deal function within the Cheatcodes interface Oct 25, 2023
Copy link
Member

@Evalir Evalir left a comment

Choose a reason for hiding this comment

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

thanks! updated to readd the info and example—just needed to remove from the cheatcodes overview.

@Evalir Evalir merged commit b956373 into foundry-rs:master Oct 25, 2023
1 check passed
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