Address (0)

I once saw someone was trying to check if a tokenAddress has been added or deployed on a assetpool using the code like below :

require(assetIdToToken[_assetId] == address(0), 'Pool already deployed');

Can we check this in such way ? As far as i know , the address(0) is being used as a burner address , no ?

1 Like

Address(0) is the default value of a non initialized

``` variable.

The same for a mapping(uint -> address)
1 Like

Yup , i have seen many devs use this to indicate initialization these days
Before that , i only know this is the burner address.