Skip to content

feat[contracts]: Have Messenger contracts emit an event on failed relay#596

Merged
smartcontracts merged 2 commits intomasterfrom
feat/messenger-emit-on-fail
Apr 23, 2021
Merged

feat[contracts]: Have Messenger contracts emit an event on failed relay#596
smartcontracts merged 2 commits intomasterfrom
feat/messenger-emit-on-fail

Conversation

@smartcontracts
Copy link
Copy Markdown
Contributor

Description
Adds a new event FailedRelayedMessage to L1CrossDomainMessenger and L2CrossDomainMessenger, to be emitted in the case that a relay failed. Alternative described in #587 was simply to add a success boolean to RelayedMessage, but some of our services rely on the current RelayedMessage event and I didn't want to break anything. I think this is good enough.

Metadata

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 23, 2021

🦋 Changeset detected

Latest commit: 5825cda

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eth-optimism/contracts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not code owner so take with a lil salt but this change LGTM! It's a great point by t11s that we need an event which confirms the message was picked up but that it failed to execute.

Here's the relevant watcher code for whoever is interested -

topics: [ethers.utils.id(`RelayedMessage(bytes32)`)],

@smartcontracts smartcontracts merged commit 572dcbc into master Apr 23, 2021
@smartcontracts smartcontracts deleted the feat/messenger-emit-on-fail branch April 23, 2021 21:38
InoMurko referenced this pull request in omgnetwork/optimism May 25, 2021
…ay (#596)

* feat[contracts]: Have messengers emit events on failed relay

* chore[contracts]: Add changeset
theochap pushed a commit that referenced this pull request Dec 10, 2025
* feat: kona-providers

* fix: remove to_l2_block_ref utility

* fix: no_std

* fix: nits
theochap added a commit that referenced this pull request Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-feature Category: features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Emit event for a relayed message even if the call reverts

3 participants