Swap target contract at test by using abstract interface

This commit is contained in:
Makoto Inoue
2016-10-22 18:16:42 +01:00
parent 8df9925d1a
commit e318d6d246
5 changed files with 35 additions and 9 deletions

View File

@ -0,0 +1,7 @@
pragma solidity ^0.4.0;
contract InsecureTargetMock {
function checkInvarient() returns(bool){
return false;
}
}

View File

@ -0,0 +1,7 @@
pragma solidity ^0.4.0;
contract SecureTargetMock {
function checkInvarient() returns(bool){
return true;
}
}