I want to create a contract so that when eth_call
is called, the contract returns EVM error: CallTooDeep
Tried something like this:
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.17;
contract CallTooDeep {
function test() public {
address(this).test();
}
}
But gets an error:
TypeError: Member "test" not found or not visible after argument-dependent lookup in address.
--> contracts/CallTooDeep.sol:6:9:
|
6 | address(this).test();
| ^^^^^^^^^^^^^^^^^^
Error HH600: Compilation failed
How I can fix this error?