* fix: clean up solium linting errors * fix: make various contracts natspec compliant * fix: this.balance deprecated; convert to address(this).balance * fix: contract.call deprecated and switch to gasleft() * fix: ignore empty block rule project-wide * fix: add ignore cases for the rest of the linting warnings
26 lines
519 B
Solidity
26 lines
519 B
Solidity
pragma solidity ^0.4.21;
|
|
|
|
|
|
contract MessageHelper {
|
|
|
|
event Show(bytes32 b32, uint256 number, string text);
|
|
|
|
function showMessage( bytes32 message, uint256 number, string text ) public returns (bool) {
|
|
emit Show(message, number, text);
|
|
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;
|
|
}
|
|
|
|
}
|