Solidity Require statement

in #solidity • 2 days ago

Require is conditional statement , if not met then all changes are reversed. Makes sure msg.sender (address) has enough balance, and is owner of contract. If not unused gas is sent back to the caller.

require(ownerZombieCount[msg.sender] == 0);

One zombie per addressare met