eshon / conference

A simple Ethereum smart contract + DApp example
175 stars 106 forks source link

Getting a compile error #5

Open jeanbapt opened 8 years ago

jeanbapt commented 8 years ago

With Truffle 2.0.7, I am trying to compile MyConference.sol. I get this error. Any recent change on Solidity affecting this code ?

Error compiling:

MyConference.sol:36:5: Warning: Return value of low-level calls not used. recipient.send(amount); ^--------------------^ Compiliation failed. See above.

ephemeralriggs commented 8 years ago

Yes. Recent security enhancements. Can you try changing the statement into this?: if (!recipient.send(amount)) throw;

robertock commented 7 years ago

The suggestion worked.

AdwindOne commented 7 years ago

Error compiling:

Migrations.sol:7:3: Error: Expected token Semicolon got 'RBrace' } ^ Compilation failed. See above.