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.
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.