mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-03-14 06:34:07 +00:00
Handle unnamed arguments in solidity methods
This commit is contained in:
parent
c557cbe035
commit
fc259a782a
@ -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
|
||||
|
||||
@ -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 = '';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user