2022-04-11 07:20:20 +00:00
|
|
|
library L {
|
2022-06-14 10:00:16 +00:00
|
|
|
event E(bytes32, bool, bytes indexed);
|
2022-04-11 07:20:20 +00:00
|
|
|
}
|
|
|
|
|
2022-06-14 10:00:16 +00:00
|
|
|
contract B {
|
|
|
|
event E(bytes32, bool, bytes indexed);
|
2022-04-11 07:20:20 +00:00
|
|
|
}
|
|
|
|
|
2022-06-14 10:00:16 +00:00
|
|
|
contract C is B {
|
|
|
|
bytes32 public librarySelector = L.E.selector;
|
|
|
|
bytes32 inheritedSelector = E.selector;
|
2022-04-11 07:20:20 +00:00
|
|
|
|
2022-06-14 10:00:16 +00:00
|
|
|
function f() public {
|
|
|
|
assert(librarySelector == L.E.selector);
|
|
|
|
assert(E.selector == B.E.selector);
|
2022-04-11 07:20:20 +00:00
|
|
|
|
2022-06-14 10:00:16 +00:00
|
|
|
emit E(E.selector, true, "123");
|
|
|
|
emit L.E((B.E.selector), true, "123");
|
2022-04-11 07:20:20 +00:00
|
|
|
}
|
|
|
|
}
|