Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Replaced assert with require
  • Loading branch information
TalAter committed Nov 18, 2017
commit 5fc53b6f2f49b121d42682ff3834e5e41d051ba3
2 changes: 1 addition & 1 deletion test/helpers/ReentrancyAttack.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

}
2 changes: 1 addition & 1 deletion test/helpers/ReentrancyMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down