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)
- [Bug-Candidate]: Infunctional with the Base mainet HOT 2
- Bugs
- [Bug-Candidate]: slither.solc_parsing.exceptions.ParsingError: Type not found contract MockERC20 HOT 2
- Monthly issue metrics report
- βread_storage cannot determine the storage layout of custom type variables within a struct. HOT 1
- The function get_storage_slot in read_storage.py cannot accurately determine the slot where variables in the structure are located. HOT 1
- Compilation error HOT 1
- revert https://github.com/crytic/slither/pull/2417 HOT 1
- When handling internal function pointers, information loss can occur.
- Support Vyper `0.4.0`
- [Bug-Candidate]: Slither python API contract with remappings file HOT 6
- [Bug-Candidate]: Slither python API went wrong when multiple SPDX license HOT 3
- how to read caller function parameters HOT 1
- [False Negative]: Not show the correct report on unused imports HOT 4
- [Bug]: Missing quotes in case mapping key passed as a string HOT 2
- [Bug]: import missing middleware from `web3.middleware` in `slither-check-upgradeability` HOT 1
- [False Negative]: reentrancy-no-eth for interprocedural case HOT 1
- Monthly issue metrics report
- support custom errors in require statements (solc 0.8.26)
- [Bug-Candidate]: pre-commit does not work as documented HOT 3
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.