Skip to content

feat(ctb): more defensive value check#3571

Merged
mergify[bot] merged 3 commits intodevelopfrom
sc/ctb-defensive-value
Sep 26, 2022
Merged

feat(ctb): more defensive value check#3571
mergify[bot] merged 3 commits intodevelopfrom
sc/ctb-defensive-value

Conversation

@smartcontracts
Copy link
Contributor

Description
Moves the msg.value == amount check when bridging ETH deeper into the call stack. Has the effect of making the function less of a footgun for future developers.

@changeset-bot
Copy link

changeset-bot bot commented Sep 26, 2022

🦋 Changeset detected

Latest commit: c0728ea

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

This PR includes changesets to release 5 packages
Name Type
@eth-optimism/contracts-bedrock Patch
@eth-optimism/actor-tests Patch
@eth-optimism/sdk Patch
@eth-optimism/drippie-mon Patch
@eth-optimism/message-relayer 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

@github-actions github-actions bot added 2-reviewers A-pkg-contracts-bedrock Area: packages/contracts-bedrock labels Sep 26, 2022
Copy link
Contributor

@maurelian maurelian left a comment

Choose a reason for hiding this comment

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

LGTM. I agree that having the check in the child contract was inconsistent and that we should stick to this pattern in the future.

@mergify
Copy link
Contributor

mergify bot commented Sep 26, 2022

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

@mergify
Copy link
Contributor

mergify bot commented Sep 26, 2022

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

@mergify mergify bot removed the on-merge-train label Sep 26, 2022
Moves the msg.value == amount check when bridging ETH deeper into the
call stack. Has the effect of making the function less of a footgun for
future developers.
@mergify
Copy link
Contributor

mergify bot commented Sep 26, 2022

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

@mergify
Copy link
Contributor

mergify bot commented Sep 26, 2022

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

@mergify mergify bot merged commit 394a26e into develop Sep 26, 2022
@mergify mergify bot deleted the sc/ctb-defensive-value branch September 26, 2022 21:36
@mergify mergify bot removed the on-merge-train label Sep 26, 2022
This was referenced Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-pkg-contracts-bedrock Area: packages/contracts-bedrock

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants