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?
"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.