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

Waffle mock contract should revert if value is sent to nonpayable function #607

Open
ItsNickBarry opened this issue Jan 1, 2022 · 0 comments
Labels
waffle-mock-contract Anything related to the mocking package

Comments

@ItsNickBarry
Copy link
Contributor

I am deploying a mock like this:

const mock = await deployMockContract(deployer, [
  'function fn () external view returns (bool)',
]);

Then I am calling fn with value, and testing how the revert is handled, but the mock doesn't revert. I've tried marking the fn function as both view and nonpayable.

@rzadp rzadp added the waffle-mock-contract Anything related to the mocking package label Jul 29, 2022
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