Function is_erc20_transfer_call

Source
fn is_erc20_transfer_call(expr: &Expr<'_>) -> bool
Expand description

Checks if an expression is an ERC20 transfer or transferFrom call. function ERC20.transfer(to, amount) function ERC20.transferFrom(from, to, amount)

Validates both the method name and argument count to avoid false positives from other functions that happen to be named “transfer”.