Skip to content

op-node: ParseWithdrawalInitiated improvements#3605

Merged
mergify[bot] merged 9 commits intodevelopfrom
feat/parse-withdrawal-improvements
Sep 29, 2022
Merged

op-node: ParseWithdrawalInitiated improvements#3605
mergify[bot] merged 9 commits intodevelopfrom
feat/parse-withdrawal-improvements

Conversation

@mslipper
Copy link
Contributor

ParseWithdrawalInitiated used to pass every log to abi.EventByID. Since abi.EventByID was bound to the L2ToL1MessagePasser contract, any logs on the receipt from a different contract would cause this function to return an error. This breaks support for parsing withdrawal events initiated by the L2StandardBridge, since the bridge adds many events of its own. This PR updates ParseWithdrawalInitiated to use the hex-encoded withdrawal intiated topic to determine which log messages to use instead.

`ParseWithdrawalInitiated` used to pass every log to `abi.EventByID`. Since `abi.EventByID` was bound to the `L2ToL1MessagePasser` contract, any logs on the receipt from a different contract would cause this function to return an error. This breaks support for parsing withdrawal events initiated by the `L2StandardBridge`, since the bridge adds many events of its own. This PR updates `ParseWithdrawalInitiated` to use the hex-encoded withdrawal intiated topic to determine which log messages to use instead.
@changeset-bot
Copy link

changeset-bot bot commented Sep 29, 2022

⚠️ No Changeset found

Latest commit: c4c8a67

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@mergify
Copy link
Contributor

mergify bot commented Sep 29, 2022

This PR changes implementation code, but doesn't include a changeset. Did you forget to add one?

Copy link
Contributor

@protolambda protolambda left a comment

Choose a reason for hiding this comment

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

Not immediately sure if we can even have a log without it, but checking topic 0 exists doesn't hurt. And added a suggestion about topic readability.

mslipper and others added 3 commits September 29, 2022 09:30
Co-authored-by: protolambda <proto@protolambda.com>
Co-authored-by: protolambda <proto@protolambda.com>
Co-authored-by: protolambda <proto@protolambda.com>
@trianglesphere
Copy link
Contributor

devnet test failure is just a 503

@mslipper
Copy link
Contributor Author

Will re-run and let Mergify handle it. Will also incorporate your suggestions above re: Bigints.

@mslipper
Copy link
Contributor Author

@Mergifyio refresh

@mergify
Copy link
Contributor

mergify bot commented Sep 29, 2022

refresh

✅ Pull request refreshed

@mergify
Copy link
Contributor

mergify bot commented Sep 29, 2022

This PR has been added to the merge queue, and will be merged soon.

@mergify
Copy link
Contributor

mergify bot commented Sep 29, 2022

This PR is next in line to be merged, and will be merged as soon as checks pass.

@mergify mergify bot merged commit 5dadba5 into develop Sep 29, 2022
@mergify mergify bot deleted the feat/parse-withdrawal-improvements branch September 29, 2022 17:06
@mergify mergify bot removed the on-merge-train label Sep 29, 2022
This was referenced Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants