I have the following function
enum OptionType {Invalid, Put, Call}
function create(
uint256 period,
uint256 amount,
uint256 strike,
OptionType optionType
) {
....
}
When I try to delegatecall this function from another contract using this
address(contractAddress).delegatecall(abi.encodeWithSignature("create(uint256,uint256,uint256,uint8)",1,1,1,1));
I get the error
function selector was not recognized and there's no fallback function