Add HasNoEther

This commit is contained in:
Remco Bloemen
2017-03-23 12:23:27 +00:00
parent 9c5975a706
commit d1af3ef1b3
6 changed files with 151 additions and 0 deletions

View File

@ -0,0 +1,17 @@
pragma solidity ^0.4.8;
import "../../contracts/ownership/HasNoEther.sol";
contract HasNoEtherTest is HasNoEther {
// Constructor with explicit payable — should still fail
function HasNoEtherTest() payable {
}
// Default function with explicit payable — should still fail
function() external payable {
throw;
}
}