-1

I see require(account != address(0x0)); as somewhat of a boilerplate check for some functions. Is the purpose just to add a check that prevents the creation of a new contract?

1 Answer 1

1

There is a 0x0 address you can see it here : https://etherscan.io/address/0x0000000000000000000000000000000000000000

This address is the owner of every ERC20 / NFT tokens when they are not claimed yet. Of course it's a dead address that nobody control. So it's important in your contract to blacklist it so you cannot "burn" token to this address. And because address is null there is a lot of bugs in your code if you don't blacklist them.

1
  • Mark as an answer then, please Jul 19, 2021 at 21:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.