I developed a contract which uses another contract in it state variable, but looks like the events from the contract in the state variable aren’t dispatched.
contract A {
event Hello(uint num);
function doSomething() {
Hello(1);
}
}
contract B {
A public a;
function doAnotherThing() public {
a = new A();
a.doSomething();
}
}
What is expected: To be possible to capture the events from the contract A
which is a state variable in the contract B
. So when call a.doSomething()
in the contract B
should be dispatched the event Hello(1)
and be possible to capture in the watch
.