2020-11-24 22:32:32 +00:00
|
|
|
contract C {
|
|
|
|
string public a;
|
|
|
|
string public b;
|
|
|
|
bytes public c;
|
2020-12-09 17:38:17 +00:00
|
|
|
string public d = "abcd";
|
2020-11-24 22:32:32 +00:00
|
|
|
constructor() {
|
|
|
|
a = "hello world";
|
|
|
|
b = hex"41424344";
|
|
|
|
c = hex"ff077fff";
|
|
|
|
}
|
|
|
|
}
|
2020-12-09 17:38:17 +00:00
|
|
|
// ====
|
|
|
|
// compileViaYul: also
|
2021-04-23 15:59:01 +00:00
|
|
|
// compileToEwasm: also
|
2020-11-24 22:32:32 +00:00
|
|
|
// ----
|
|
|
|
// a() -> 0x20, 11, "hello world"
|
|
|
|
// b() -> 0x20, 4, "ABCD"
|
|
|
|
// c() -> 0x20, 4, -439061522557375173052089223601630338202760422010735733633791622124826263552
|
2020-12-09 17:38:17 +00:00
|
|
|
// d() -> 0x20, 4, "abcd"
|