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: add contracts for alternative gas token design #11

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

zimpha
Copy link
Member

@zimpha zimpha commented Jul 22, 2024

No description provided.

@zimpha zimpha requested a review from Thegaram July 22, 2024 05:36
Copy link
Contributor

@Thegaram Thegaram left a comment

Choose a reason for hiding this comment

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

Overall looks good

src/alternative-gas-token/L1ScrollMessengerNonETH.sol Outdated Show resolved Hide resolved
address _refundAddress
) internal override {
// if we want to pass value to L2, must call from `L1NativeTokenGateway`.
if (_value > 0 && _msgSender() != nativeTokenGateway) revert ErrorNonZeroValueFromCaller();
Copy link
Contributor

Choose a reason for hiding this comment

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

Will it be possible to use the batch bridge gateway with nativeTokenGateway?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, need to modify the L1BatchBridgeGateway and L2BatchBridgeGateway to support.

@zimpha zimpha marked this pull request as ready for review July 29, 2024 16:41
@zimpha zimpha requested a review from yiweichi July 30, 2024 01:41
@Thegaram
Copy link
Contributor

fyi this is already merged into #5. we can merge into main once we decided on an audit plan. (This way we can ensure that these changes will not interfere with other changes pushed for mainnet.

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.

3 participants