Replaced assert with require

pull/506/head
Tal Ater 7 years ago
parent 1d54b86a7c
commit 5fc53b6f2f
  1. 2
      test/helpers/ReentrancyAttack.sol
  2. 2
      test/helpers/ReentrancyMock.sol

@ -3,7 +3,7 @@ pragma solidity ^0.4.11;
contract ReentrancyAttack {
function callSender(bytes4 data) {
assert(msg.sender.call(data));
require(msg.sender.call(data));
}
}

@ -27,7 +27,7 @@ contract ReentrancyMock is ReentrancyGuard {
if(n > 0) {
count();
bool result = this.call(func, n - 1);
assert(result == true);
require(result == true);
}
}

Loading…
Cancel
Save