Skip to content

Emit event for a relayed message even if the call reverts #587

@transmissions11

Description

@transmissions11

Is your feature request related to a problem? Please describe.
If a relayed message performs a call that fails, the RelayedMessage event is not emitted (only on success). This means that the watcher will not pick up the relayed event. There are many applications I can think of where a user needs to be able to detect if a relayed message failed with the watcher, and this is currently not possible.

Describe the solution you'd like
I can think of a couple methods:

  • Add a success param to the RelayedMessage event and emit it in both cases.
  • Add a FailedRelayedMessage event and emit that if the call fails.
  • Emit RelayedMessage in both cases with no additional context.

Metadata

Metadata

Labels

C-featureCategory: features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions