I have a contract A, which is inherited by B (in other words, contract B is A).

I have an event in contract A, "Registration", but I wasn't able to listen for the event/get past events.

In the ABI for contract B, I don't see that event listed. Are events not inherited in Ethereum or am I mistaken?

1 Answer 1


Yes, they are. The following code will perfectly work:

pragma solidity 0.4.19;

contract A {
    event LOG(uint _num);

contract B is A {
    function doSomething() public{

Also, this is the ABI of contract B, which as you can see does contain the event:

enter image description here

  • You're right, I was having some sort of issue with Truffle compile, it wasn't updating my compiled contracts correctly. Deleting everything in /build/contracts and recompiling provided the correct ABI, thank you.
    – wtk219
    Dec 29, 2017 at 17:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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