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

fix: [N-03] Lack of Documentation (removed hardcoded refund address) #326

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

mrice32
Copy link
Contributor

@mrice32 mrice32 commented Jul 27, 2023

This PR removes the hardcoded refund address for zkSync, replaces it with an immutable value, and adds a default address in the deployment script that is the most common dataworker address.

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
Copy link
Contributor

@pxrl pxrl left a comment

Choose a reason for hiding this comment

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

Nice improvement to make it configurable via the constructor.

I've proposed a PR to update the tests so they verify that the output l2RefundAddress matches the what was supplied in the constructor. I couldn't propose it directly on this PR because it's not the scope of the diff. See #329

*/
constructor(WETH9Interface _l1Weth) {
constructor(WETH9Interface _l1Weth, address _l2RefundAddress) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good call on making this dynamic

@mrice32 mrice32 merged commit b7cf2f2 into master Jul 28, 2023
5 checks passed
@mrice32 mrice32 deleted the n03 branch July 28, 2023 22:02
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.

None yet

3 participants