Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove transfer check validation #8

Merged
merged 4 commits into from
Nov 21, 2022
Merged

Conversation

fredlacs
Copy link
Contributor

@fredlacs fredlacs commented Oct 3, 2022

The outboundTransferChecks validation step was introduced before the L1 inbox provided validation on the user's retryable ticket value.

The current require statement does not allow for users to cleanly deposit extra excess eth without having to change the gas parameters.
The check could be changed to

require(msg.value >= ... )

Which then becomes the same as the check the Inbox now currently does by default in https://github.com/OffchainLabs/nitro/blob/c191708c7847bf9e92c3c0a5263d31e4876d9e18/contracts/src/bridge/Inbox.sol#L413

@fredlacs fredlacs requested review from yahgwai and gzeoneth October 3, 2022 10:37
@cla-bot cla-bot bot added the cla-signed label Oct 3, 2022
Copy link
Member

@gzeoneth gzeoneth left a comment

Choose a reason for hiding this comment

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

LGTM

@gzeoneth gzeoneth merged commit 2306488 into main Nov 21, 2022
@gzeoneth gzeoneth deleted the remove-transfer-check branch November 21, 2022 08:37
gvladika added a commit that referenced this pull request Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants