ExtraStorage.sol inheritance of address #2483
-
when ExtraStorage.sol is deployed and it imports as well as inherits SimpleStorage contract. But SimpleStorage.sol is not deployed then how does ExtraStorage communicate with that contract as there is no address. ps- I had this even when I did buildspace and learnweb3dao and was not able to get a proper answer. I had done till module 9 but I am doing this as revision on my part again and this time from chainlink channel so it is easier to do so. Thank for such an amazing course. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@Lavishq ExtraStorage contract is inheriting the SimpleStorage contract and this way, all of the features it grabbing from the SimpleStorage contract. And if you deploy the parent contract all of the child contracts will be deployed and their features will be available in the deployed contract. |
Beta Was this translation helpful? Give feedback.
@Lavishq ExtraStorage contract is inheriting the SimpleStorage contract and this way, all of the features it grabbing from the SimpleStorage contract. And if you deploy the parent contract all of the child contracts will be deployed and their features will be available in the deployed contract.