when running a contract am getting on remix invalid opcode as well on metmask, the contract that am runing is quite simple:
`// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract WebsiteStorage {
string private storedWebsite;
function setWebsite(string calldata url) public {
storedWebsite = url;
}
function getWebsite() public view returns (string memory) {
return storedWebsite;
}
}`
***How to solve it? please help me urgently.
***Thanks in advanced
I have tried to check the connection between ganache and metamask and the network was 100% working.
I have checked the Danache logs and same erorr was mentioned but the contract was found in the contracts section.
I have tried tried to chekc the connection between remix and Metamask, the connection is working properly as i have found the logs of the transactions posted from remix on metamask logs
Raed Diab is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.