solidity/test/libsolidity/semanticTests/getters/struct_with_bytes_simple.sol

18 lines
341 B
Solidity
Raw Normal View History

2020-06-03 19:54:43 +00:00
contract C {
struct S {
uint a;
bytes b;
mapping(uint => uint) c;
uint[] d;
}
uint shifter;
S public s;
2020-06-23 12:14:24 +00:00
constructor() {
2020-06-03 19:54:43 +00:00
s.a = 7;
s.b = "abc";
s.c[0] = 9;
}
}
// ----
// s() -> 0x07, 0x40, 0x03, 0x6162630000000000000000000000000000000000000000000000000000000000