contract B {
event eventFallback();
}
contract A {
address contractB;
function () public payable {
emit B(contractB).eventFallback();
}
}
I tried like above and failed. Is there a way to emit an event in another contract? (except creating an interface function like below.)
function emitEvent() public {
emit eventFallback();
}