fn is_erc20_transfer_call(hir: &Hir<'_>, expr: &Expr<'_>) -> bool
Expand description
Checks if an expression is an ERC20 transfer
or transferFrom
call.
function transfer(address to, uint256 amount) external returns bool;
function transferFrom(address from, address to, uint256 amount) external returns bool;
Validates the method name, the params (count + types), and the returns (count + types).