Skip to content

Commit

Permalink
chore: config.default.json -> config.default.jsonc
Browse files Browse the repository at this point in the history
  • Loading branch information
martiliones committed Jan 26, 2024
1 parent 0fd8bcc commit 0be249b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
package-lock.json
config.default.jsonc
12 changes: 6 additions & 6 deletions config.default.json → config.default.jsonc
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
/**
The Console will use this ADM passphrase by default.
See 'Installing and configuring' in Readme for details.
**/
* The Console will use this ADM passphrase by default.
* See 'Installing and configuring' in Readme for details.
*/
"passphrase": "distance expect praise frequent..",

/** Choose 'mainnet' or 'testnet' **/
/* Choose 'mainnet' or 'testnet' */
"network": "testnet",

/** Port used to run RPC server **/
/* Port used to run RPC server */
"rpc": {
"port": 5080
},

/** Additionally, you can specify what ADM nodes to use **/
/* Additionally, you can specify what ADM nodes to use */
"networks": {
"testnet": {
"nodes": [
Expand Down
2 changes: 1 addition & 1 deletion utils/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const configFilePath = path.normalize(`${configDirPath}/${configFileName}`);
const localConfigFilePath = path.resolve(configFileName);

const __dirname = path.dirname(fileURLToPath(import.meta.url));
const defaultConfigFilePath = path.join(__dirname, '../config.default.json');
const defaultConfigFilePath = path.join(__dirname, '../config.default.jsonc');

function loadConfig(configPath) {
let parsedConfig = {};
Expand Down

0 comments on commit 0be249b

Please sign in to comment.