Verify if Sender is Teleporter
Safety verification of the message sender
We can also leverage the registry to check if msg.sender
is a registered teleporter contract. Previously, we hardcoded this check in the contract:
If there was now a new Teleporter version that would be used for sending messages, we would have to update the contract.
Instead, we can use the registry to check if the sender is a registered Teleporter contract.