Skip to main content

is_hook_call_on

Function is_hook_call_on 

Source
fn is_hook_call_on<'hir>(
    gcx: Gcx<'hir>,
    hir: &'hir Hir<'hir>,
    expr: &'hir Expr<'hir>,
    recipient: VariableId,
    token: VariableId,
) -> bool
Expand description

recipient.onERC721Received(..., token, ...): the hook, asked of the recipient itself and about the delegated token itself. A recipient may accept one token and refuse another, so an answer about a different id, the hook’s third parameter, decides nothing for the minted one.