Skip to content
Discussion options

You must be logged in to vote

address.call("") just invokes the CALL opcode with no calldata, so you do not need to use vm.mockCall. Although, in order to hit your path, you would essentially need to create a contract with a payable receive function that reverts. Returning false does not do anything - the success boolean just indicates whether the CALL opcode encountered a revert or not.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 0xCLARITY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants