Interchain Messaging Registry
Learn about the Interchain Messaging Registry to manage multiple Interchain Messaging versions.
When sending a message from the source chain we are calling the Interchain Messaging contract:
The TeleporterMessenger contract is non-upgradable. Once a version of the contract is deployed it cannot be changed. This is with the intention of preventing any changes to the deployed contract that could potentially introduce bugs or vulnerabilities. However, there could still be new versions of TeleporterMessenger contracts needed to be deployed in the future.
So far we used a fixed address for the TeleporterMessenger in all of our contracts. It is hardcoded in our contract. This is not a good practice, as it makes the contract less flexible and harder to upgrade.
While we could manually update the address of the used TeleporterMessenger in our contract, TeleporterRegistry provides us an easy way to use the latest version of TeleporterMessenger.
What you will learn
In this section, you will explore the following topics:
- How the Interchain Messaging Registry works
- How to retrieve the latest version of the TeleporterMessenger on a blockchain