|
|
|
|
|
by DennisP
3253 days ago
|
|
Transactions on Ethereum are atomic. If something throws, everything rolls back. There's one well-known exception, which is that if your contract sends ETH to another contract, invoking its fallback function, then a throw in the callee just means the call returns false. So in that particular case you have to check the return value and rethrow to make it atomic; this sounds crazy but in some circumstances you don't actually want to throw. The compiler gives you a warning if you don't check. |
|