I'm trying to write my first smart contract by copying code from a video online. The instructor could "Deploy" but for some reason I'm getting this error message even though the code is exactly the same.
Currently you have no contract instances to interact with
10.5k views Asked by blockchainstephen AtThere are 8 answers
The area where this message is shown is where deployed contracts are listed. This is simply stating that you haven't yet deployed a contract.
In the contracts drop down, I see you do not have a contract selected. You'll need to select a compiled contract to deploy. If there aren't any, its because you haven't yet compiled one. You'll need to select a .sol file in the compiler panel, and run the compiler. Once complete, you should see the compiled contract in the drop down.
Once you hit deploy, assuming the selected contract deploys successfully, you'll see the contract listed here.
It seems you have not compiled your contract. You can simply compile by clicking compile button available. Please refer to the image Compile button Snap.
I can confirm if all else fails, refresh the page. I ran into the same issue and after refreshing the page everything was working correctly again. It was the first time I had ran into this issue, so I too was a little puzzled. I usually start a new browser session so it was not an issue before.
this problem occurs when you don't compile the code. You need to compile it first and then the deploy button will appear