Skip to content

Why Transaction.input is null in some transaction #2535

@sc0Vu

Description

@sc0Vu

Do you want to request a feature or report a bug?
Might be

What is the current behavior?
I got null input from event.transaction.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
In our smart contract, we proxy the bytes payload of order to another smart contract, you can see I decoded and sanitized transaction.input to decode uint256. And it worked in some transactions.

Somehow, I noticed that some transaction.input was null and I could find transaction.input on explorer.

Subgraph: https://github.com/consenlabs/tokenlon-v5-subgraph/tree/goerli-next

URL: https://thegraph.com/explorer/subgraph/sc0vu/tokenlon-v5-goerli-exchange?version=current

Query:

// null transaction input
{
  swappeds(first: 5, where: { inputs: null }) {
    id
    inputs
    transactionHash
  }

// non null transaction input
  swappeds(first: 5, where: { inputs_not: null }) {
    id
    inputs
    transactionHash
  }
)

What is the expected behavior?

Should return transaction data when use transaction.input.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions