Handle unnamed arguments in solidity methods

This commit is contained in:
Shreerang Kale 2025-08-12 15:46:29 +05:30
parent c557cbe035
commit fc259a782a
2 changed files with 11 additions and 10 deletions

View File

@ -104,14 +104,6 @@ To enable GQL requests caching:
yarn job-runner
```
* Run the server:
```bash
yarn server
```
GQL console: http://localhost:{{port}}/graphql
* To watch a contract:
```bash
@ -137,6 +129,14 @@ To enable GQL requests caching:
yarn watch:contract --address MyProtocol --kind protocol --checkpoint true
```
* Run the server:
```bash
yarn server
```
GQL console: http://localhost:{{port}}/graphql
* To fill a block range:
```bash

View File

@ -65,8 +65,9 @@ export class Visitor {
const name = node.name;
assert(name);
const params = node.parameters.map((item: any) => {
return { name: item.name, type: item.typeName.name };
const params = node.parameters.map((item: any, index: number) => {
const itemName = item.name ?? `arg${index}`;
return { name: itemName, type: item.typeName.name };
});
let errorMessage = '';