0x00000002 / rootcore

Apache License 2.0
0 stars 1 forks source link

check result of send #10

Open gabriel-canaan opened 6 years ago

gabriel-canaan commented 6 years ago

rootcore/blob/master/contracts/CrowdsaleController.so](https://github.com/tikonoff/rootcore/blob/master/contracts/CrowdsaleController.sol) Line 243

 assert(beneficiary.send(msg.value)); // transfer the ether to the beneficiary account
gabriel-canaan commented 6 years ago

Using send() or transfer() will prevent reentrancy but it does so at the cost of being incompatible with any contract whose fallback function requires more than 2,300 gas