I write a simple contract to test the event like the following code:
pragma solidity ^0.6.12;
contract EventTest {
address public router;
event RouterUpdated(address indexed newAddress);
function setRouter(address newAddress) public {
router = newAddress;
emit RouterUpdated(newAddress);
}
}
Why the transaction event function name does not appear? Check result