Function anyActionParameter

  • Creates a default Criteria object that allows validation to pass. This is used if you don't care about targeting specific parameters in the action step.

    This function returns a Criteria object with the following properties:

    • filterType: Set to EQUAL for exact matching
    • fieldType: Set to BYTES to handle any data type
    • fieldIndex: Set to 255, which is typically used to indicate "any" or "all" in this context using CheatCodes enum
    • filterData: Set to zeroHash (0x0000...0000)

    Returns Criteria

    A Criteria object that can be used to match any action parameter

    const anyCriteria = anyActionParameter();
    // Use this criteria in an ActionStep to match any parameter
    const actionStep = {
    // ... other properties ...
    actionParameter: anyCriteria
    };