What does assert do in address.call method as used in the contract shown?

Hi @Altaergo,

The assert is checking that the call was successful.

https://docs.soliditylang.org/en/v0.4.26/control-structures.html?highlight=assert#error-handling-assert-require-revert-and-exceptions

This is quite old code. We also need to consider reentrancy, see: Reentrancy After Istanbul

1 Like