Closed davidyuk closed 1 year ago
@davidyuk Why do you think this is a bug?
The warning is shown because neither the datatype event
nor the data constructor RemoteEvent(int)
are used.
Closing this as it's the expected behavior and it's not a real bug.
So, compiler suggest me to remove event
definition in RemoteI, but I need it in ACI to parse the emitted event on the aepp side (actually, it is implemented in sdk). Seems that there is no way to rewrite contact to fix warning and keep aepp working, can you confirm that?
I found this behaviour in aesophia_cli, but probably it is related to the whole compiler.
Reproduction.aes
I'm using this kind of contract to generate ACI. The event type provided in ACI is used to decode events emitted by
emitEvents
. I doubt that the compiler should warn about this.