Add HasNoEther
This commit is contained in:
17
test/helpers/HasNoEtherTest.sol
Normal file
17
test/helpers/HasNoEtherTest.sol
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user