Unverified Commit db5a12cf by Facundo Spagnuolo Committed by GitHub

Merge pull request #506 from TalAter/fix/deprecated-throw-in-tests

Replace deprecated throw with assert in Solidity tests
parents 99f3e26f 5fc53b6f
......@@ -3,9 +3,7 @@ pragma solidity ^0.4.11;
contract ReentrancyAttack {
function callSender(bytes4 data) {
if(!msg.sender.call(data)) {
throw;
}
require(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) {
throw;
}
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