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

16 lines
477 B
Solidity

contract C {
event TestA(function() external indexed);
event TestB(function(uint256) external indexed);
function f1() public {
emit TestA(this.f1);
}
function f2(uint256 a) public {
emit TestB(this.f2);
}
}
// ----
// f1() ->
// ~ emit TestA(function): #0x0fdd67305928fcac8d213d1e47bfa6165cd0b87bc27fc3050000000000000000
// f2(uint256): 1 ->
// ~ emit TestB(function): #0x0fdd67305928fcac8d213d1e47bfa6165cd0b87bbf3724af0000000000000000