Error cases in AddressUpgradeable.sol::verifyCallResultFromTarget

In Address.sol, what does the text mean? Why not requring isContract at start of the function?

The description is very clear, so I doubt that I can explain it any better than it already is, but I'll try:

If a function-call on some address has succeeded but the length of the data returned from that function is zero, then this address is possibly NOT the address of a contract, hence we need to ensure that there is indeed a contract deployed at this address.

If a function-call on some address has succeeded and the length of the data returned from that function is larger than zero, then this address is definitely the address of a contract, hence we do not need to ensure that there is a contract deployed at this address.

2 Likes

Super!
sometimes, it's hard to grasp the meaning from short comments

1 Like