I am compiling a contract from browser-solidity,but I am getting Error: Expected token Semicolon got 'RBrace'
. The part of contract that throws error is:
contract owned {
address public owner;
function owned() {
owner = msg.sender;
}
modifier onlyOwner {
if (msg.sender != owner) throw;
_
} }
The surprising thing is same contract is deployed from Mist without any issue. So why browser solidity is throwing error.Is there a bug in solidity-compiler or something is not right with my contract?
Owned
, notowned
. – Xavier Leprêtre B9lab Oct 12 '16 at 14:05