Currently you have no contract instances to interact with

10.5k views Asked by At

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.
enter image description here

8

There are 8 answers

0
Paulo Almeida On

this problem occurs when you don't compile the code. You need to compile it first and then the deploy button will appear

0
hideakanta On

If you use Remix plugin on VsCode and encounter "Currently you have no contract instances to interact with" problem, correct your solidity version which version you wrote and compile it again.

0
tintyethan On

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.

0
Yar On

For me simply refreshing the page solved this issue.

1
ihtisham javed On

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.

0
onyx37 On

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.

0
user23373595 On

GO IN THE COMPILER SECTION, THEN ADVANCE SETTINGS AND SIMPLY CHANGE THE EVM VERSION TO THE VERSION YOU ARE USING.

0
Allan Thuranira On

Refreshing solves the issue after you have compiled.