-
Notifications
You must be signed in to change notification settings - Fork 12
[Feature]: Allow setting contract::address
in unit tests
#5
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
Comments
Depends on OpenZeppelin/rust-contracts-stylus#423 |
3 tasks
Closed
1 task
bidzyyys
added a commit
to OpenZeppelin/rust-contracts-stylus
that referenced
this issue
Jan 7, 2025
<!-- Thank you for your interest in contributing to OpenZeppelin! Consider opening an issue for discussion prior to submitting a PR. New features will be merged faster if they were first discussed and designed with the team. Describe the changes introduced in this pull request. Include any context necessary for understanding the PR's purpose. --> **NOTE: It is impossible to write any unit tests until it is possible to mock `contract::address()` in tests (see OpenZeppelin/stylus-test-helpers#5 <!-- Fill in with issue number --> Resolves #355 #### PR Checklist <!-- Before merging the pull request all of the following must be completed. Feel free to submit a PR or Draft PR even if some items are pending. Some of the items may not apply. --> - [x] Tests - [x] Documentation - [x] Changelog --------- Co-authored-by: Nenad <[email protected]> Co-authored-by: Nenad <[email protected]> Co-authored-by: Daniel Bigos <[email protected]> Co-authored-by: Alisander Qoshqosh <[email protected]>
This was referenced Feb 4, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the feature you would like to see?
Could be helpful in such contracts testing such as
VestingWallet
andErc20FlashMint
.Contribution Guidelines
The text was updated successfully, but these errors were encountered: