Error: Expected '(' but got identifier

zak100zak100 Member Posts: 4
Hi,
I am trying to compile following contract:
pragma solidity ^0.4.9;
contract MyContract {
    uint public mynumber; 
    /* Modified simple storage function. Only stores numbers greater than 10. */

    constructor() public {
    {
        mynumber = 24; 
    }

    function storeNum (uint mynum) public returns (bool success)
    {
     require(mynum > 10);
     mynumber = mynum; 
     return true;    
    }
}
I am getting following error message:

solc MyContract.sol
MyContract.sol:11:14: Error: Expected '(' but got identifier
function storeNum (uint mynum) public returns (bool success)
^------^

>


Some body please guide me how to remove this error.

Zulfi.
Sign In or Register to comment.