graphprotocol / graphprotocol/graph-node
CallHandler: Doesn't work for function with tuple[][] arguments
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 3.2k
- Forks
- 1.1k
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 1
Description
Do you want to request a feature or report a bug?
bug
What is the current behavior?
Failed to generate types for contract ABIs: Failed to generate types for contract ABI: Conversion from 'ethereum' to 'AssemblyScript' for source type 'tuple[][]' is not supported
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
{
"inputs": [
{
"internalType": "bytes32[]",
"name": "accounts",
"type": "bytes32[]"
},
{
"components": [
{
"internalType": "enum ResourceData.ResourceType",
"name": "resourceType",
"type": "uint8"
},
{
"internalType": "uint256[]",
"name": "amounts",
"type": "uint256[]"
}
],
"internalType": "struct ResourceData.AmountPayload[][]",
"name": "payloads",
"type": "tuple[][]"
}
],
"name": "registerAndDripMult",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
run graph codegen with this abi
What is the expected behavior?
should support tuple[][]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running graph codegen with the ABI shown in the issue and reproduce the failure for the tuple[][] argument. Trace the ABI type conversion entry point that reports the unsupported conversion, then verify that code generation succeeds for nested tuple arrays without regressing the existing ABI cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- blockchain, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100