As seen in the screenshot, I deploy a contract named
TulkerSale using Ganache. Then in truffle console,
TulkerSale.deployed() returns an error...
How can I access the deployed contract in the console?
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
"TulkerSale" is the name of the contract but it does not represent an instance.
That will get you the deployed contract account.
at(): Create an instance of MyContract that represents your contract at a specific address. deployed(): Create an instance of MyContract that represents the default address managed by MyContract. new(): Deploy a new version of this contract to the network, getting an instance of MyContract that represents the newly deployed instance.