-
Notifications
You must be signed in to change notification settings - Fork 347
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
L1Messenger Tests #150
L1Messenger Tests #150
Conversation
0278380
to
e33d00b
Compare
0f88441
to
6703d6a
Compare
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 for adding additional tests for this function. I think there are lot of places where code repetition could be reduced:
- In lots of places a large
const totalL2ToL1PubdataAndStateDiffs = ethers.utils.concat
is done, with almost the same values everywhere. - Also,
const numberOfLogsBytes = ethers.utils.hexZeroPad(ethers.utils.hexlify(numberOfLogs), 4);
this part is often repeated.
It is better to move all these methods to a separate functions, where we modify only things that really change between various tests
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.
👍 Just a few more polishing and we are done
Co-authored-by: Uacias <filgum0326@gmail.com>
No description provided.