You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
450 B
23 lines
450 B
pragma solidity ^0.5.2;
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
|