Remove payable from Destructible constructor (#1107)
* Destructible no longer has a payable constructor. * Fixed linter errors.
This commit is contained in:
@ -9,9 +9,6 @@ import "../ownership/Ownable.sol";
|
||||
* @dev Base contract that can be destroyed by owner. All funds in contract will be sent to the owner.
|
||||
*/
|
||||
contract Destructible is Ownable {
|
||||
|
||||
constructor() public payable { }
|
||||
|
||||
/**
|
||||
* @dev Transfers the current balance to the owner and terminates the contract.
|
||||
*/
|
||||
|
||||
7
contracts/mocks/DestructibleMock.sol
Normal file
7
contracts/mocks/DestructibleMock.sol
Normal file
@ -0,0 +1,7 @@
|
||||
pragma solidity ^0.4.24;
|
||||
|
||||
import "../lifecycle/Destructible.sol";
|
||||
|
||||
contract DestructibleMock is Destructible {
|
||||
function() payable public {}
|
||||
}
|
||||
Reference in New Issue
Block a user