Retrieving Teleporter from the Registry
Use Registry in a Cross-Chain dApp.
Alright, so let's now integrate the registry into a smart contract. Let's go back to the very simple string sending contract from the beginning:
Don't forget to replace the destinationBlockchainID with the one from your Subnet!
The key things to understand:
- We are also importing the ITeleporterRegistry.sol
- We have a variable for the registry address instead of the messenger address
- Before sending the message we get the latest version from the registry