-
Notifications
You must be signed in to change notification settings - Fork 980
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
Compute offset to contracts #2382
Conversation
sync master<>dev
prepare 0.10.1 release
assignement -> assignment
Signed-off-by: rustrover <[email protected]>
chore: remove repetitive word
Update node.py
Signed-off-by: majorteach <[email protected]>
chore: remove repetitive words
The alternative would be to make `Contract` inherit from `TopLevel`, but I'm not confident that wouldn't break other things
WalkthroughThe core adjustment in this update involves refining type checks within the Slither tool. By expanding the Changes
Possibly related issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (1)
- slither/core/slither_core.py (1 hunks)
Additional comments (1)
slither/core/slither_core.py (1)
- 212-212: The extension of the
isinstance
check to includeContract
alongsideTopLevel
aligns with the PR's objectives and appears to be correctly implemented. However, it's crucial to verify that this change does not inadvertently affect other parts of the system that rely on the originalisinstance
behavior.Verification successful
The extension of the
isinstance
check to includeContract
alongsideTopLevel
aligns with the PR's objectives and appears to be correctly implemented. However, it's crucial to verify that this change does not inadvertently affect other parts of the system that rely on the originalisinstance
behavior.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that the extended isinstance check does not affect other parts of the system. # This script is a placeholder and should be replaced with specific verification steps as needed. echo "Verification steps to ensure system-wide compatibility with the extended isinstance check."Length of output: 190
Script:
#!/bin/bash # Search for references to the TopLevel and Contract classes in the codebase to assess their usage. echo "Searching for references to TopLevel and Contract classes..." rg "TopLevel|Contract" --vimgrepLength of output: 290626
I included this in #2376 bc I wanted to run the tests with it but the histories were incompatible and prevented merging the branches |
The alternative would be to make
Contract
inherit fromTopLevel
, but I'm not confident that wouldn't break other thingsSummary by CodeRabbit
Contract
objects, improving reliability.