From a691d92af1129b13f2661e3ec1781b1647a068a9 Mon Sep 17 00:00:00 2001 From: Nicholas Rodrigues Lordello Date: Fri, 30 Aug 2024 16:25:04 +0200 Subject: [PATCH] Fix Example Configuration File 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 () at validateJSON (/usr/src/app/dist/src/index.js:122:27) at Command. (/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). --- config.json.example | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config.json.example b/config.json.example index 40f6ecb..a391897 100644 --- a/config.json.example +++ b/config.json.example @@ -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" } } }