@@ -3,9 +3,7 @@ pragma solidity ^0.4.11;
contract ReentrancyAttack {
function callSender(bytes4 data) {
- if(!msg.sender.call(data)) {
- throw;
- }
+ assert(msg.sender.call(data));
}
@@ -27,9 +27,7 @@ contract ReentrancyMock is ReentrancyGuard {
if(n > 0) {
count();
bool result = this.call(func, n - 1);
- if(result != true) {
+ assert(result == true);