mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
44da8507b1
Co-authored-by: Rodrigo Q. Saramago <rodrigoqsaramago@gmail.com>
27 lines
968 B
Solidity
27 lines
968 B
Solidity
contract Medium {
|
|
uint public a;
|
|
uint[] public b;
|
|
function f1(uint x) public returns (uint) { a = x; b[uint8(msg.data[0])] = x; }
|
|
function f2(uint x) public returns (uint) { b[uint8(msg.data[1])] = x; }
|
|
function f3(uint x) public returns (uint) { b[uint8(msg.data[2])] = x; }
|
|
function g7(uint x) public payable returns (uint) { b[uint8(msg.data[6])] = x; }
|
|
function g8(uint x) public payable returns (uint) { b[uint8(msg.data[7])] = x; }
|
|
function g9(uint x) public payable returns (uint) { b[uint8(msg.data[8])] = x; }
|
|
function g0(uint x) public payable returns (uint) { require(x > 10); }
|
|
}
|
|
// ----
|
|
// creation:
|
|
// codeDepositCost: 259600
|
|
// executionCost: 298
|
|
// totalCost: 259898
|
|
// external:
|
|
// a(): 2447
|
|
// b(uint256): infinite
|
|
// f1(uint256): infinite
|
|
// f2(uint256): infinite
|
|
// f3(uint256): infinite
|
|
// g0(uint256): infinite
|
|
// g7(uint256): infinite
|
|
// g8(uint256): infinite
|
|
// g9(uint256): infinite
|