2020-01-28 10:59:44 +00:00
|
|
|
contract test {
|
|
|
|
uint256 public data;
|
|
|
|
bytes6 public name;
|
|
|
|
bytes32 public a_hash;
|
|
|
|
address public an_address;
|
2020-06-23 12:14:24 +00:00
|
|
|
constructor() {
|
2020-01-28 10:59:44 +00:00
|
|
|
data = 8;
|
|
|
|
name = "Celina";
|
|
|
|
a_hash = keccak256("\x7b");
|
|
|
|
an_address = address(0x1337);
|
|
|
|
super_secret_data = 42;
|
|
|
|
}
|
|
|
|
uint256 super_secret_data;
|
|
|
|
}
|
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2020-11-21 13:54:16 +00:00
|
|
|
// compileToEwasm: also
|
|
|
|
// allowNonExistingFunctions: true
|
2020-01-28 10:59:44 +00:00
|
|
|
// ----
|
|
|
|
// data() -> 8
|
|
|
|
// name() -> "Celina"
|
|
|
|
// a_hash() -> 0xa91eddf639b0b768929589c1a9fd21dcb0107199bdd82e55c5348018a1572f52
|
|
|
|
// an_address() -> 0x1337
|
|
|
|
// super_secret_data() -> FAILURE
|