-
Notifications
You must be signed in to change notification settings - Fork 162
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
🍶 Implement mocking receive function to revert #807
Conversation
🦋 Changeset detectedLatest commit: e6b2cc4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
} | ||
|
||
function forwardByCall() public payable { | ||
(bool sent, bytes memory data) = payable(tokenContract).call{gas: 10000, value: msg.value}(""); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why gas is set to 10000?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not actually needed, removed.
let contract: Contract; | ||
|
||
beforeEach(async () => { | ||
[sender] = new MockProvider().getWallets(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing mockERC20.provider
each time feels unnatural
[sender] = new MockProvider().getWallets(); | |
provider = new MockProvider() | |
[sender] = provider.getWallets(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
Closes #739
Closes #557