Removed old, unused mocks. (#1382)
This commit is contained in:
committed by
Leo Arias
parent
308e5e9cc0
commit
b17de011dc
@ -1,15 +0,0 @@
|
|||||||
pragma solidity ^0.4.24;
|
|
||||||
|
|
||||||
// @title Force Ether into a contract.
|
|
||||||
// @notice even
|
|
||||||
// if the contract is not payable.
|
|
||||||
// @notice To use, construct the contract with the target as argument.
|
|
||||||
// @author Remco Bloemen <remco@neufund.org>
|
|
||||||
contract ForceEther {
|
|
||||||
|
|
||||||
constructor() public payable { }
|
|
||||||
|
|
||||||
function destroyAndSend(address recipient) public {
|
|
||||||
selfdestruct(recipient);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,49 +0,0 @@
|
|||||||
pragma solidity ^0.4.24;
|
|
||||||
|
|
||||||
contract MessageHelper {
|
|
||||||
|
|
||||||
event Show(bytes32 b32, uint256 number, string text);
|
|
||||||
event Buy(bytes32 b32, uint256 number, string text, uint256 value);
|
|
||||||
|
|
||||||
function showMessage(
|
|
||||||
bytes32 _message,
|
|
||||||
uint256 _number,
|
|
||||||
string _text
|
|
||||||
)
|
|
||||||
public
|
|
||||||
returns (bool)
|
|
||||||
{
|
|
||||||
emit Show(_message, _number, _text);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function buyMessage(
|
|
||||||
bytes32 _message,
|
|
||||||
uint256 _number,
|
|
||||||
string _text
|
|
||||||
)
|
|
||||||
public
|
|
||||||
payable
|
|
||||||
returns (bool)
|
|
||||||
{
|
|
||||||
emit Buy(
|
|
||||||
_message,
|
|
||||||
_number,
|
|
||||||
_text,
|
|
||||||
msg.value);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function fail() public {
|
|
||||||
require(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
function call(address _to, bytes _data) public returns (bool) {
|
|
||||||
// solium-disable-next-line security/no-low-level-calls
|
|
||||||
if (_to.call(_data))
|
|
||||||
return true;
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user