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.
22 lines
394 B
22 lines
394 B
pragma solidity ^0.4.24;
|
|
|
|
contract Failer {
|
|
uint256[] private array;
|
|
|
|
function dontFail() public pure {
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
|