-
Notifications
You must be signed in to change notification settings - Fork 245
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
ACL: optimize checkOracle() #500
base: next
Are you sure you want to change the base?
Conversation
contracts/acl/ACL.sol
Outdated
0x20 // uint256 return | ||
) | ||
|
||
if gt(success, 0) { |
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 like coverage is crashing when instrumenting this line
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 shoot, I remember having this issue with SafeERC20
but ended up putting that in the skip list.
0x20 // uint256 return | ||
) | ||
|
||
// solidity-coverage fails on assembly `if` |
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.
🤷♂️
2047972
to
ea30416
Compare
Updates the
ACL
's staticcall to use a more-optimized one similar toSafeERC20
'sinvokeAndCheckSuccess()
.Bytecode comparison: