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

Or 1807 fix issues from the internal audit s feedback #255

Conversation

nguyenzung
Copy link
Member

Apply updated code to the codeReview branch

Thank you!

@@ -355,8 +403,7 @@ contract OptimismPortal is Initializable, ResourceMetering, ISemver {
// Set the l2Sender so contracts know who triggered this withdrawal on L2.
l2Sender = _tx.sender;
if (_tx.value > 0) {
IERC20(_nativeTokenAddress).safeIncreaseAllowance(_tx.target, _tx.value);
depositedAmount -= _tx.value;
IERC20(_nativeTokenAddress).safeIn(_tx.target, _tx.value);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can fix it! 🙇🏻‍♂️🙇🏻‍♂️

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you very much, @rlgns98kr
I updated!

@nguyenzung
Copy link
Member Author

Hi @theo-learner
The base branch is read-only. Could you update the permission?

@theo-learner
Copy link
Member

theo-learner commented Sep 9, 2024

Hi @theo-learner The base branch is read-only. Could you update the permission?

Ok. Let me check and update it.

@theo-learner
Copy link
Member

theo-learner commented Sep 9, 2024

@nguyenzung Is it OK to change target branch from codeReview to main? We have to keep the branch permission of codeReview as project FBI's policy. Or I think we can merge it to OR-1810 branch, and then OR-1810 merge to main branch.

@nguyenzung
Copy link
Member Author

nguyenzung commented Sep 9, 2024

@nguyenzung Is it OK to change target branch from codeReview to main? We have to keep the branch permission of codeReview as project FBI's policy.

I think it is okay @theo-learner

I will make other PR to merge the updated code to the main branch.

I make this PR so that we can review the result after internal audit easier arcoding @0x6e616d and @rlgns98kr opinions.

I will close this PR after every member verifies the result.

Let me think about how to merge to OR-1810. Thank you very much, Theo!

Copy link
Contributor

@steven94kr steven94kr left a comment

Choose a reason for hiding this comment

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

It's great! Thank you very much, Brave!

I think we can merge it to main! (We can close this PR!)

@steven94kr
Copy link
Contributor

훌륭해요! 정말 고맙습니다, Brave!

메인에 합칠 수 있을 것 같아요!

@nguyenzung Is it OK to change target branch from codeReview to main? We have to keep the branch permission of codeReview as project FBI's policy.

I think it is okay @theo-learner

I will make other PR to merge the updated code to the main branch.

I make this PR so that we can review the result after internal audit easier arcoding @0x6e616d and @rlgns98kr opinions.

I will close this PR after every member verifies the result.

Let me think about how to merge to OR-1810. Thank you very much, Theo!

And I agree your opinion. We can close this PR instead of editing base branch!

@nguyenzung nguyenzung closed this Sep 9, 2024
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