-
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
Bridging between L1 ETH and L2 ERC20 BridgedETH #73
Conversation
f6bdd2c
to
d8aac20
Compare
9f32f03
to
43d175b
Compare
43d175b
to
af93864
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## celo3 #73 +/- ##
=======================================
Coverage 47.93% 47.94%
=======================================
Files 178 178
Lines 6794 6799 +5
Branches 1097 1098 +1
=======================================
+ Hits 3257 3260 +3
- Misses 3417 3418 +1
- Partials 120 121 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Looks good. Just comments for Constants usage
@@ -211,7 +211,9 @@ contract L1StandardBridge is StandardBridge, ISemver { | |||
/// @param _minGasLimit Minimum gas limit for the deposit message on L2. | |||
/// @param _extraData Optional data to forward to L2. | |||
function _initiateETHDeposit(address _from, address _to, uint32 _minGasLimit, bytes memory _extraData) internal { | |||
_initiateBridgeETH(_from, _to, msg.value, _minGasLimit, _extraData); | |||
_initiateBridgeETHToERC20( | |||
0x4200000000000000000000000000000000001023, _from, _to, msg.value, _minGasLimit, _extraData |
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.
Maybe set this as a constant with a name? But I don't totally know if that could cost or not more gas to be honest
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.
Ahh yes. When I started out I was not sure were to put the named constant, and later I just forgot. Fixed now.
af93864
to
7e146b0
Compare
There's on test waiting to be updated, but I'll do that in a second PR if this one get's ready to merge quickly. |
cd11911
to
1898800
Compare
* Fix terminal colors during test runs `tput init` does not properly reset colors in all terminals. * Allow running tests matching a certain pattern
I am not sure why these linting errors did not prevent merging on upstream, as I didn't touch these files. I assume that we can drop this commit after an upstream rebase.
27c079a
to
e1080b4
Compare
I measured the required mem usage and it is 8545MB on CircleCI at the moment. I'm not sure why upstream needs so much less. The high memory usage might be caused by foundry-rs/foundry#6411
e1080b4
to
73822e4
Compare
Notes:
Closes #63