I can not deploy any contracts with remix today even contracts I have previously deployed successfully. I get invalid opcode. i have even tried switching browsers still the same issue. here is the example contract I was trying to deploy to test calling other contract.
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Deployed {
function setA(uint) public returns (uint) {}
function a() public pure returns (uint) {}
}
contract Existing {
Deployed dc;
function ExistingContract(address _t) public {
dc = Deployed(_t);
}
function getA() public view returns (uint result) {
return dc.a();
}
function setA(uint _val) public returns (uint result) {
dc.setA(_val);
return _val;
}
}
I was able to deploy the first contract not sure why.
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract Deployed {
uint public a = 1;
function setA(uint _a) public returns (uint) {
a = _a;
return a;
}
}