qgis-us / qgis-us.github.io

QGIS US Website
http://qgis.us/
6 stars 15 forks source link

Getting a compile error #19

Closed eshon closed 4 years ago

eshon commented 5 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.

eshon commented 5 years ago

➤ Thomas Zander commented:

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

eshon commented 5 years ago

➤ robertock commented:

The suggestion worked.

eshon commented 5 years ago

➤ Adwind commented:

Error compiling:

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

kgjenkins commented 4 years ago

spam