mirror of
https://github.com/lens-protocol/core.git
synced 2026-04-22 03:02:03 -04:00
misc: Added zero address construction check.
This commit is contained in:
@@ -50,6 +50,8 @@ contract LensHub is ILensHub, LensNFTBase, VersionedInitializable, LensMultiStat
|
||||
* @param collectNFTImpl The collect NFT implementation address.
|
||||
*/
|
||||
constructor(address followNFTImpl, address collectNFTImpl) {
|
||||
if (followNFTImpl == address(0)) revert Errors.InitParamsInvalid();
|
||||
if (collectNFTImpl == address(0)) revert Errors.InitParamsInvalid();
|
||||
FOLLOW_NFT_IMPL = followNFTImpl;
|
||||
COLLECT_NFT_IMPL = collectNFTImpl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user