Comments (3)
This was changed purposely in #2370. It used to be a late lookup and caused issues with aliasing. In retrospect, I probably could have replaced uses of contract_name
where I wanted it to be the contract and left contract_name
a str
from slither.
Ah I see. I didn't update the signature of slither.core.expressions.new_contract.NewContract
https://github.com/crytic/slither/pull/2370/files#diff-fd01d1c9135cdceee138701706ce2947d135c9b32bf89253c5ca2f84a54979d9R619
from slither.
So is this newC.contract_name.type.name
the intended way to get the contract name?
Also why is that called contract_name
, I think it could cause further confusions and is better to be replaced with something like contract_type
or contract
from slither.
Related Issues (20)
- [False-Positive]: Vyper constant-states
- Record name location for declarations HOT 2
- filter `name-reused` to only run on Truffle projects
- [Bug-Candidate]: pip install fails when run against fresh install due to hexbytes version mismatch HOT 2
- API change: rename sons/father to next/predecessor in nodes
- [Bug]: MetaMorpho HOT 1
- [Bug]: detectors `unused-import`, `solc-version` and `pragma` ignore `filter_paths` config HOT 2
- Filter paths before parsing and lowering AST when possible HOT 2
- [Bug-Candidate]: Slither calls solc with non-existant option "--evm-version" HOT 2
- [False-Positive]: `Block timestamp` and `Dangerous strict equalities` HOT 2
- add `detectors_to_include` which overrides `exclude_*`
- [Bug]: EVM printer fails for Abstract Contracts
- Monthly issue metrics report
- Regarding the issues during the slither detection process HOT 1
- [Bug- Candidate]: Failed to generate IR HOT 1
- [Bug]: ERROR:root:Top level EventDefinition not supported HOT 5
- [Bug-Candidate]: Fail to scan in a project that supports both Hardhat and Foundry, keeps deleting the `build-info` folder when `slither .` is used HOT 7
- Monthly issue metrics report
- Add Support for Integer overflow and underflow detection HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slither.