Function resolveByName

  • Resolve an inheritable contract property following the standard C3 linearization order.

    Type Parameters

    • T extends Resolvable

    Parameters

    • scope: ContractDefinition
    • constructor: ASTNodeConstructor<T>

      The class constructor of the type of contract property we are resolving. One of FunctionDefinition, ModifierDefinition, EventDefinition or VariableDeclaration

    • name: string

      Name of the property we are attempting to resolve. Note that if we are resolving functions or events there may be multiple results as functions/events can have the same name and different arguments

    • inference: InferType
    • onlyParents: boolean = false

      boolean flag specifing that we want to only look through the bases of the contract.

    Returns T[]

Generated using TypeDoc