Deploying contract from within a contract. (is it really "Deploying" ? ) #3228
-
I think I am a little confused on the terminology used in Video 3 Deploying a contract from a contract That or |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @EdwinFairchild, This |
Beta Was this translation helpful? Give feedback.
Hello @EdwinFairchild, This
simpleStorage = new SimpleStorage();
actually deploys a newSimpleStorage
contract to the network. If you say it is instantiating aSimpleStorage
contract, that is technically correct, I think. When you want to interact with an already deployed contract, you get the address where the contract was deployed to, and then you wrap that address with an interface, which is actually you creating a contract object from the address and interface that is not a deployment of a new contract. Please ask questions if anything is confusing.