When executing the command
truffle(develop)> let instance = await MetaCoin.deployed()
How does truffle get the address of the contract that is deployed ?
Ethereum Stack Exchange is a question and answer site for users of Ethereum, the decentralized application platform and smart contract enabled blockchain. It only takes a minute to sign up.Sign up to join this community
The address is stored in the build/contracts/MetaCoin.json file under the
networks section. Truffle puts the address there when you deploy the contract. You can also manually add addresses to the
networks section and Truffle with recognize them.