RestrictionValidator

Git Source

Author: Matter Labs

The library which validates whether an address can be a valid restriction

Note: security-contact: security@matterlabs.dev

Functions

validateRestriction

Ensures that the provided address implements the restriction interface

Note that it can not guarantee that the corresponding address indeed implements the interface completely or that it is implemented correctly. It is mainly used to ensure that invalid restrictions can not be accidentally added.

function validateRestriction(address _restriction) internal view;