-
Notifications
You must be signed in to change notification settings - Fork 709
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
Variable offset may uninitialized #1782
Comments
Branch:
config.json is: {
"remappings": [ "@openzeppelin/=lib/openzeppelin-contracts/", "@layerzero/=lib/LayerZero/"],
"optimizer": {
"enabled": true
}
} But works after removing "optimizer": {
"enabled": true
} |
Hi @kabeor , That was intended as previous solc-mapping adhered to such convention starting with non-zero offset and only using |
@norhh Sure, it's 0.8.20 |
https://github.com/ConsenSys/mythril/blob/develop/mythril/solidity/soliditycontract.py#L368C18-L368C18
L376(
if self._is_autogenerated_code(offset, length, idx):
) will causeUnboundLocalError: local variable 'offset' referenced before assignment
if L367(if len(mapping) > 0 and len(mapping[0]) > 0:
) isFalse
.The text was updated successfully, but these errors were encountered: