We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
reading msg.sender is 2 gas units which is less than a read of a local var + the unnecessary store operation.
In the following require statements you can use custom errors to save gas and improve code quality.
The text was updated successfully, but these errors were encountered:
mics issue #190
cef077a
No branches or pull requests
Table Of Content
GAS REPORT
Don't cache msg.sender
reading msg.sender is 2 gas units which is less than a read of a local var + the unnecessary store operation.
Code Instances:
Use custom errors
In the following require statements you can use custom errors to save gas and improve code quality.
Code Instances:
Use assembly opcodes iszero instead of solidity equation to save gas
Code Instances:
If the function is onlyOwner you may make it payable to reduce gas usage.
Code Instances:
The text was updated successfully, but these errors were encountered: