conference icon indicating copy to clipboard operation
conference copied to clipboard

Getting a compile error

Open jeanbapt opened this issue 9 years ago • 3 comments

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.

jeanbapt avatar Aug 18 '16 17:08 jeanbapt

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

ephemeralriggs avatar Aug 29 '16 15:08 ephemeralriggs

The suggestion worked.

robertock avatar Sep 20 '16 17:09 robertock

Error compiling:

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

AdwindOne avatar Jun 26 '17 08:06 AdwindOne