solidity/test/libsolidity/semanticTests/events/event_struct_storage_v2.sol
2022-05-19 20:23:28 +02:00

14 lines
237 B
Solidity

pragma abicoder v2;
contract C {
struct S { uint a; }
event E(S);
S s;
function createEvent(uint x) public {
s.a = x;
emit E(s);
}
}
// ----
// createEvent(uint256): 42 ->
// ~ emit E((uint256)): 0x2a