Skip to content

Commit

Permalink
Fix Example Configuration File
Browse files Browse the repository at this point in the history
When running with the example configuration file, you get the following
error:

```
Error parsing configuration file: SyntaxError: Expected double-quoted property name in JSON at position 387 (line 11 column 17)
    at JSON.parse (<anonymous>)
    at validateJSON (/usr/src/app/dist/src/index.js:122:27)
    at Command.<anonymous> (/usr/src/app/dist/src/index.js:65:24)
    at Command.listener [as _actionHandler] (/usr/src/app/node_modules/commander/lib/command.js:482:17)
    at /usr/src/app/node_modules/commander/lib/command.js:1300:65
    at Command._chainOrCall (/usr/src/app/node_modules/commander/lib/command.js:1197:12)
    at Command._parseCommand (/usr/src/app/node_modules/commander/lib/command.js:1300:27)
    at /usr/src/app/node_modules/commander/lib/command.js:1081:27
    at Command._chainOrCall (/usr/src/app/node_modules/commander/lib/command.js:1197:12)
    at Command._dispatchSubcommand (/usr/src/app/node_modules/commander/lib/command.js:1077:23)
```

It appears that it doesn't like the trailing `,`s (so it appears to only
support plain old JSON and not JSONc or JSON5).

This PR fixes the example configuration file to be valid JSON (and also
removes some trailing whitespace in the file).
  • Loading branch information
nlordell committed Aug 30, 2024
1 parent 90ecbf5 commit a691d92
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"rpc": "ws://172.20.0.5:8546",
"deploymentBlock": 17883049,
"filterPolicy": {
"defaultAction": "ACCEPT",
"defaultAction": "ACCEPT",
"conditionalOrderIds": {
"0x5b3cdb6ffa3c95507cbfc459162609007865c2e87340312d3cd469c4ffbfae81": "DROP",
"0x5b3cdb6ffa3c95507cbfc459162609007865c2e87340312d3cd469c4ffbfae81": "DROP"
},
"transactions": {
"0x33ef06af308d1e4f94dd61fa8df43fe52b67e8a485f4e4fff75235080e663bfa": "DROP",
"0x33ef06af308d1e4f94dd61fa8df43fe52b67e8a485f4e4fff75235080e663bfa": "DROP"
},
"handlers": {
"0xd3338f21c89745e46af56aeaf553cf96ba9bc66f": "DROP",
"0xd3338f21c89745e46af56aeaf553cf96ba9bc66f": "DROP"
},
"owners": {
"0xd3338f21c89745e46af56aeaf553cf96ba9bc66f": "DROP",
"0xd3338f21c89745e46af56aeaf553cf96ba9bc66f": "DROP"
}
}
}
Expand Down

0 comments on commit a691d92

Please sign in to comment.