Calling functions of contract on other chains #513
-
Hello, im just curious to know is situation explained bellow possible: Let contract X be on Rinkeby network. Let contract Y be on Goerli network. Can contract Y communicate with contract X by calling his function "myFunction" by only knowing his address and abi? ================================================================================= If you go to website: https://docs.chain.link/docs/ethereum-addresses/ where you can find contract addresses for some data feeds, as we used it in FundMe.sol and PriceConverter.sol contracts, you wont find contract on Goerli network. So if i want to deploy my FundMe contract on Goerli, i cannot pass him argument in constructor on what address to find AggregatorV3Interface contract since there is no Goerli DataFeed on chainlink. So what i tought i could to, is to create a contract on Rinkeby Network (contract X) [why on rinkeby? because there is contract that returns ETH->USD on rinkeby network from chainlink] that will have function that returns a conversionRate of ETH->USD ( myFunction() ) and since i know the ABI and contract ADDRESS that is deployed on Rinkeby network, Is there some work-around for this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
actually No, smart contracts are only interoperable with other smart contracts in the same network because the network is isolated. Sadly chainlink doesn't have any data feed contract on goerli netwrok. Only Kovan and Rinkeby testnets are available. You can give a read to this article : https://blog.chain.link/cross-chain-smart-contracts/ |
Beta Was this translation helpful? Give feedback.
actually No, smart contracts are only interoperable with other smart contracts in the same network because the network is isolated.
Sadly chainlink doesn't have any data feed contract on goerli netwrok. Only Kovan and Rinkeby testnets are available.
although now i would suggest either use Kovan for both contracts or rinkeby.
You can give a read to this article : https://blog.chain.link/cross-chain-smart-contracts/