-
Couldn't load subscription status.
- Fork 1.1k
Description
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!