makoto / blockparty

NO BLOCK NO PARTY
MIT License
164 stars 41 forks source link

Check the return value of msg.sender.send #20

Closed makoto closed 8 years ago

makoto commented 8 years ago

The compiler used in Truffle 2.0.8 raises error if send is not wrapped with if()

Instead of

msg.sender.send(msg.value);

do

 if(msg.sender.send(msg.value);){}

whether you want to throw in case of failure is another story.

makoto commented 8 years ago

https://github.com/makoto/blockparty/pull/18