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

Support side-effects on mocks #586

Open
suranap opened this issue Oct 19, 2021 · 1 comment
Open

Support side-effects on mocks #586

suranap opened this issue Oct 19, 2021 · 1 comment
Labels
waffle-mock-contract Anything related to the mocking package

Comments

@suranap
Copy link

suranap commented Oct 19, 2021

Similar to Python's Mock class here. I can't figure out how to do this with Waffle.

For example, I want to mock a UniswapV2Pair to force removeLiquidity to have different behaviors. This is easy with mocks. However, it also needs to transfer tokens to the calling contract. This is a side-effect caused when removing liquidity.

@rzadp rzadp added the waffle-mock-contract Anything related to the mocking package label Jul 29, 2022
@rzadp
Copy link
Contributor

rzadp commented Nov 10, 2022

Might be a duplicate of #545

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waffle-mock-contract Anything related to the mocking package
Projects
None yet
Development

No branches or pull requests

2 participants