solidity/test/libsolidity/semanticTests/events/event_signature_in_library.sol

22 lines
417 B
Solidity
Raw Normal View History

pragma abicoder v2;
library L {
struct S {
uint8 a;
int16 b;
}
event E(S indexed, S);
function f() internal {
S memory s;
emit E(s, s);
}
}
contract C {
constructor() {
L.f();
}
}
// ----
// constructor()
// ~ emit E((uint8,int16),(uint8,int16)): #0xad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5, 0x00, 0x00
2021-11-15 15:19:33 +00:00
// gas legacy: 150602