Skip to content

Commit

Permalink
chore: Modified Logs
Browse files Browse the repository at this point in the history
  • Loading branch information
xlassix committed Aug 27, 2024
1 parent 16fe585 commit 0c003c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Finally, send a new request transaction to have it indexed. Make sure to replace

```bash
cd rooch
rooch move run --function <contractAddress>::example_caller::request_data --sender-account default --args 'string:v2v3v' --args 'string:v2v3v' --args 'string:v2v3v' --args 'string:v2v3v' --args 'string:v2v3v' --args 'address:0x9a759932a6640790b3e2a5fefdf23917c8830dcd8998fe8af3f3b49b0ab5ca35'
rooch move run --function <contractAddress>::example_caller::request_data --sender-account default --args 'string:api.x.com' --args 'string:POST' --args 'string:v2v3v' --args 'string:{"test":1}' --args 'string:' --args 'address:0xd5ea168fcbeb42ca8c891a1b3cf54edf48035389f0dacaa7d374fcc483927f7d'
```


6 changes: 5 additions & 1 deletion orchestrator/src/indexer/rooch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ export default class RoochIndexer {
},
);

// log.info("Events fetched successfully", response.data);
log.debug(
response?.data?.result?.data?.length > 0
? `fetched ${response?.data?.result?.data?.length ?? 0} events successfully`
: "No New Event",
);

return response.data;
} catch (error) {
Expand Down

0 comments on commit 0c003c0

Please sign in to comment.