Teleporter Registry
Lear about the Teleporter Registry to manage multiple Teleporter versions.
When sending a message from the source chain we are calling the Teleporter 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 out 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 out 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 Teleporter Registry works
- How to retrieve the latest version of the TeleporterMessenger on a blockchain