-
Notifications
You must be signed in to change notification settings - Fork 974
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
how to read caller function parameters #2533
Labels
question
Further information is requested
Comments
You are looking for arguments of the call https://crytic.github.io/slither/slither/slithir/operations/call.html#Call.arguments. The parameters are what is in the function defintion. Here's an example of how you'd do this slither/slither/detectors/erc/erc20/arbitrary_send_erc20.py Lines 54 to 64 in 9a5b4f5
For your example here's roughly how that translates
|
0xalpharush
changed the title
[Bug-Candidate]: slither python API can't read caller function parameters
how to read caller function parameters
Aug 14, 2024
0xalpharush
added
question
Further information is requested
and removed
bug-candidate
Bugs reports that are not yet confirmed
labels
Aug 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue:
There is a smart contract
I use slither in python, to detect the safeTransferFrom whether limit the from parameter.
This is my code
But I found scs[1].parameters are parameters 'token' 'from','to','value' which are in TransferHelper smart contract's safeTransferFrom, not 'token','from','to','fee' in TokenFee contract's safeTransferFrom. How to get the right parameter 'token','from','to','fee'?
Code example to reproduce the issue:
Version:
0.10.3
Relevant log output:
No response
The text was updated successfully, but these errors were encountered: