Commit 5fc53b6f by Tal Ater

Replaced assert with require

parent 1d54b86a
...@@ -3,7 +3,7 @@ pragma solidity ^0.4.11; ...@@ -3,7 +3,7 @@ pragma solidity ^0.4.11;
contract ReentrancyAttack { contract ReentrancyAttack {
function callSender(bytes4 data) { function callSender(bytes4 data) {
assert(msg.sender.call(data)); require(msg.sender.call(data));
} }
} }
...@@ -27,7 +27,7 @@ contract ReentrancyMock is ReentrancyGuard { ...@@ -27,7 +27,7 @@ contract ReentrancyMock is ReentrancyGuard {
if(n > 0) { if(n > 0) {
count(); count();
bool result = this.call(func, n - 1); bool result = this.call(func, n - 1);
assert(result == true); require(result == true);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment