Call.get_function()
Returns the function that is being called, if exists, otherwise returns NoneObject
get_function() →
Function
| NoneObject
The function will return the Function object of the function being called, as there can be cases (such as low-level external calls, or solidity built-in calls) where there is no defined function the function will return NoneObject:
For example, in the call:
The if the function is used on the call representing the require(...)
, NoneObject will be returned, as there is no solidity code representing the builtin function.
On the other hand if the function is called on the call representing balanceOf(to)
it will return the Function object of the balanceOf
.
Note that for the external calls made using interfaces, the function will return the interface Function object.
For the call:
it will return a function object representing the IUniswapV2Factory
interface's createPair
function
Query Example
Output Example
The function was called from the _fallback()
instruction
_fallback()
instructionLast updated