Verify if Sender is Interchain Messaging
Safety verification of the message sender
We can also leverage the registry to check if msg.sender
is a registered Interchain Messaging contract. Previously, we hardcoded this check in the contract:
If there was now a new Interchain Messaging contract 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 Interchain Messaging contract.