2020-03-09 21:14:07 +00:00
|
|
|
contract Main {
|
|
|
|
bytes3 name;
|
|
|
|
bool flag;
|
|
|
|
|
2020-06-23 12:14:24 +00:00
|
|
|
constructor(bytes3 x, bool f) {
|
2020-03-09 21:14:07 +00:00
|
|
|
name = x;
|
|
|
|
flag = f;
|
|
|
|
}
|
|
|
|
|
|
|
|
function getName() public returns (bytes3 ret) {
|
|
|
|
return name;
|
|
|
|
}
|
|
|
|
|
|
|
|
function getFlag() public returns (bool ret) {
|
|
|
|
return flag;
|
|
|
|
}
|
|
|
|
}
|
2020-04-17 20:24:33 +00:00
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2020-03-09 21:14:07 +00:00
|
|
|
// ----
|
|
|
|
// constructor(): "abc", true
|
2022-01-14 12:37:40 +00:00
|
|
|
// gas irOptimized: 106683
|
2021-11-15 15:19:33 +00:00
|
|
|
// gas legacy: 145838
|
|
|
|
// gas legacyOptimized: 104017
|
2020-03-09 21:14:07 +00:00
|
|
|
// getFlag() -> true
|
|
|
|
// getName() -> "abc"
|