Skip to content

Feature request: "isNotZero" helper #2024

Open

Description

@PaulRBerg

Which packages are impacted by your issue?

@graphprotocol/graph-ts

Describe the feature request

We often need to perform an "is not zero check", e.g.

event.transaction.value.isZero() === false

It would be quite handy if there were an isNotZero helper provided natively by @graphprotocol/graph-ts.

Activity

  1. PaulRBerg commented on May 12, 2025

    @PaulRBerg
    ContributorAuthor

    On a separate note: please make it possible to create feature requests as issues directly. I've opened lots of Discussions, but it looks like nobody monitors that channel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions