dethcrypto / dethcrypto/TypeChain
Error when parsing tuples as function parameters in Cairo Abi (StarkNet)
- Dominant language
- TypeScript
- Stars
- 2.8k
- Forks
- 376
- PR merge metrics
- No merged PRs in 30d
Description
Abi:
```
{
"members": [
{
"name": "index",
"offset": 0,
"type": "(f: (min: (a: felt, b: felt), max: felt), g: (a: felt, b: felt))"
},
{
"name": "payment_juels",
"offset": 5,
"type": "felt"
}
],
"name": "TestStruct",
"size": 6,
"type": "struct"
},
```
Error:
```
Error occured: '=>' expected. (25:69)
23 |
24 |
> 25 | export type TestStruct = { index: [f:(min:(a:felt, b:felt), max:felt), g:(a:felt, b:felt)];
| ^
26 | payment_juels: BigNumberish
27 | }
28 | export type TestStructOutput = { index: [f:(min:(a:felt, b:felt), max:felt), g:(a:felt, b:felt)];
```
Contributor guide
Assessment
This issue has not been assessed yet.