Skip to content

[NODE] ethtx task fails to parse minConfirmations as uint and string from cborparse #6680

Description

@vnavascues

Description

Attempting to set ethtx minConfirmations via cborparse output makes the jobrun error with:

  "__typename": "JobRun",
  "id": "110",
  "allErrors": [
    "minConfirmations: strconv.ParseUint: parsing "$(decode_cbor.minConfirmations)": invalid syntax: bad input for task"
  ],
  "createdAt": "2022-05-25T13:15:26.136101Z",
  "fatalErrors": [
    "minConfirmations: strconv.ParseUint: parsing "$(decode_cbor.minConfirmations)": invalid syntax: bad input for task"
  ],

No matter whether I send it as uint256 or string, the error is the same.

Strategy 1 - Passing minConfirmations as uint256:

_req.addUint("minConfirmations", uint256(spec.minConfirmations)); // NB: I do have a uint48

image

image

Strategy 2 - Passing minConfirmations as string:

_req.add("minConfirmations", Strings.toString(spec.minConfirmations)); // NB: I do use OZ Strings library

image

image

However, gasLimit can be passed as uint256 and set via cborparse output:

req.addUint("gasLimit", uint256(gasLimit));

Basic Information

Reproduced with Chainlink Node v1.2.0 and v1.4.1

Environment Variables

Not relevant

Steps to Reproduce

The hard way is implementing a consumer contract that sends minConfirmations. I haven't tried it using a webhook job though (I remember breaking an old node version attempting to make an ethtx via webhook job).

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigatingNeeds someone to take a deeper look. Has been viewed and someone will figure out the procedure.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions