-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix(portal-contract): wrong 'from' when depositing from the contract through Portal.onApprove function #275
fix(portal-contract): wrong 'from' when depositing from the contract through Portal.onApprove function #275
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much, Nam!
I think we should not merge this yet, shouldn't we?
I think we can submit PR to the external audit team and we'll merge after we finalize the audit. |
@tokamak-network/layer2-core I will submit this PR to Sherlock. Do we need an additional review of this code? If you need it, please let me know by tomorrow. |
I think the code needs to be updated base on the commit c3a2bd6 |
b1e0c56
to
8d9e0e8
Compare
Rebased, thank you @nguyenzung @theo-learner |
I created the new branch for submitting fixed PR. Could you change the base branch to fix-review(https://github.com/tokamak-network/tokamak-thanos/tree/fix-review)? |
8d9e0e8
to
fa3208c
Compare
fa3208c
to
c3a2bd6
Compare
…through Portal.onApprove function
Done, thank youuu |
Resolved: External Issue #39
I added a new test for these changes but removed because it only worked with
forge test --match-contract OptimismPortal2_Test
.With the contract
DeploymentSummaryFaultProofs_TestOptimismPortal
that is usingKontrol
,vm.startPrank
didn't work withl2NativeToken.mint(value)
orl2NativeToken.approveAndCall
: issueSo we can add the test later. My test