I'm running into this compiler error when I compile my solidity code:
error[3419]: TypeError: Cannot call function via contract type name.
Here is my code:
import "MyContract.sol";
.
.
.
MyContract myContract = new MyContract();
address contractAddress = MyContract.deployContract("SimpleStorage");
What's going on?
MyContract
is another contract.