solidity/test/libsolidity/semanticTests/array/bytes_length_member.sol
Daniel Kirchner 5989f45e9e Test updates.
2022-06-14 18:26:16 +02:00

20 lines
366 B
Solidity

contract c {
function set() public returns (bool) {
data = msg.data;
return true;
}
function getLength() public returns (uint256) {
return data.length;
}
bytes data;
}
// ----
// getLength() -> 0
// set(): 1, 2 -> true
// gas irOptimized: 110402
// gas legacy: 110968
// gas legacyOptimized: 110585
// getLength() -> 68