* Bump required compiler version to 0.5.2. * Fix shadowed variable warning in ERC20Migrator. * Rename Counter to Counters. * Add dummy state variable to SafeERC20Helper. * Update changelog entry. * Fix CountersImpl name. * Improve changelog entry.
24 lines
450 B
Solidity
24 lines
450 B
Solidity
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);
|
|
}
|
|
}
|
|
}
|