The registry allows contracts to unregister (unregister(address)) themselves, so aside from saving some amount of gas, a contract-level toggle is mostly redundant.
This adds examples with a storage boolean that the owner() can flip once to permanently disable the call to the registry.
The registry allows contracts to unregister (
unregister(address)
) themselves, so aside from saving some amount of gas, a contract-level toggle is mostly redundant.This adds examples with a storage boolean that the
owner()
can flip once to permanently disable the call to the registry.