llSourcell / ethereum_demo

This is the code for "Ethereum Explained" by Siraj Raval on Youtube
177 stars 90 forks source link

truffle compile error #1

Open bkinsey808 opened 7 years ago

bkinsey808 commented 7 years ago

I get this error when I run truffle compile on Mac OS:

$ truffle compile
Compiling ./contracts/Conference.sol...
Compiling ./contracts/Migrations.sol...

/Users/bkinsey808/gh/ethereum_demo/contracts/Conference.sol:9:3: ParserError: Expected token Semicolon got 'Event'
        event Refund(address, _to, uint, _amount)
        ^
,/Users/bkinsey808/gh/ethereum_demo/contracts/Migrations.sol:7:3: ParserError: Expected token Semicolon got 'RBrace'
  }
  ^
Compiliation failed. See above.
davidrhodus commented 7 years ago

https://github.com/llSourcell/ethereum_demo/pull/2

justNik101 commented 7 years ago

Just minor change in syntax

justNik101 commented 7 years ago

Remove commas from the function like this event Refund(address _to, uint _amount); And add semicolon after each statement Just minor changes and code with compile perfectly

bkinsey808 commented 7 years ago

PR #3 worked for me.