1

Does a contract calling a function defined within itself cause an Event to be emitted? Etherscan is not showing events emitted when a function is called using sendSignedTransaction(), despite the fact an Event is within that function.

  • 1
    Yes. Do you have an example of a transaction you expected to emit an event that did not? – smarx Aug 21 '18 at 23:17
1

Yes, if you have defined the event in the function that is being called.

Provided that the event was set up correctly (I can confirm if you add the code to the original post), the EVM will emit each event as they occur.

The Etherscan link you provided is a wallet (as opposed to a contract). Etherscan should pick up all events that occur on the blockchain for a contract, and they will be reflected in the contract's page on Etherscan.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.