-
Notifications
You must be signed in to change notification settings - Fork 9
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
small improvements for readability and gas #4
small improvements for readability and gas #4
Conversation
should allow the removal of BytesLib. less code to be audited foo
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.
was able to axe BytesLib entirely by using calldata slicing. should reduce audit LoC
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.
Ah yeah good shout since the calldata isn't stored in memory anymore. This is a good win
address public verifierAddr; | ||
address public dkimAddr; | ||
address public emailAuthImplementationAddr; | ||
address internal immutable verifierAddr; |
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.
these have getter functions. so will reduce deployment bytecode size
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.
makes sense, posted this suggestion in zkemail/email-tx-builder#28
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.
LGTM, cheers!
address public verifierAddr; | ||
address public dkimAddr; | ||
address public emailAuthImplementationAddr; | ||
address internal immutable verifierAddr; |
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.
makes sense, posted this suggestion in zkemail/email-tx-builder#28
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.
Ah yeah good shout since the calldata isn't stored in memory anymore. This is a good win
4dd50b4
into
zkemail:generic-validator-module
Found a few points for improvements during my code review. figured its easiest to take out a PR instead of making a list.
No functionality changes, but should improve on gas and readability