Skip to content

Cannot read property 'toHexString' of null #526

@rjkz808

Description

@rjkz808

Description

When I'm trying to call the ethers.Contract function (with a uint type argument(s)) I'm getting the next error:

TypeError: Cannot read property 'toHexString' of null

The stack trace leads me to the ethers.utils.bigNumberify method. I tried to convert args to BigNumber, string, number (using parseInt), BN (why not) - all this tries failed. Initial values are normal integers, when I call the same methods using web3 all is fine. What can be wrong? Thanks in advance for your help 😄

Versions

  • web3 1.0.0-beta.37
  • ethers 4.0.27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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