Firescar96 / blockapps-docs

GET
GNU Affero General Public License v3.0
1 stars 0 forks source link

Getting a compile error #5

Open eshon opened 5 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.