* Adding solhint, working on style fixes. * Upgraded to solhint 1.5.0. * Removed all references to Solium * Updated mocks to make the pass the new linter rules. * Reformatted the .solhint.json file a bit. * Removed Solium configuration files. * Remove Solium dependency. * Add comment explaing disabled time rule in TokenVesting. * Revert to the old (ugly?) style. * Revert SignatureBouncerMock style. * Fix ERC165InterfacesSupported interface.
24 lines
450 B
Solidity
24 lines
450 B
Solidity
pragma solidity ^0.5.0;
|
|
|
|
contract Failer {
|
|
uint256[] private array;
|
|
|
|
function dontFail() public pure {
|
|
// solhint-disable-previous-line no-empty-blocks
|
|
}
|
|
|
|
function failWithRevert() public pure {
|
|
revert();
|
|
}
|
|
|
|
function failWithThrow() public pure {
|
|
assert(false);
|
|
}
|
|
|
|
function failWithOutOfGas() public {
|
|
for (uint256 i = 0; i < 2**200; ++i) {
|
|
array.push(i);
|
|
}
|
|
}
|
|
}
|