Say I have a contract with a method that does a low level call on an address _addr
assuming the target address is a contract with a certain method isValid()
:
contract Dummy {
function doCall(address _addr) public returns (bool) {
return _addr.call(abi.encodeWithSignature("isValid()");
}
}
What happens if the address _addr
is not a contract but an EOA? Trying it in Remix indicates that the call returns true
when _addr
is an EOA.
If this is indeed the case can someone explains or point me to the part of the documentation where this is exlained?
Thanks in advance!