Closed Yash-Gadhade closed 2 years ago
It seems that you are trying to deploy the HelloWorld
contract, but you have selected the IHelloWorld
at the dropdown
Yes, I want to deploy IHelloWorld, but for some reason, I cannot deploy it due to the error showcased.
But IHelloWorld
is an interface. Are you indeed trying to deploy an interface?
Interfaces don't have any implementations on itself.
Okay, I got it. Thank you, Matheus!
Getting this as an error while deploying IHelloWorld This is code `// SPDX-License-Identifier: MIT
pragma solidity >=0.7.0 <0.9.0;
interface IHelloWorld { function helloWorld() external view returns (string memory); function setText(string memory newText) external ;
}
contract HelloWorld is IHelloWorld{ string internal text;
}`
Please help me resolve it