From f825978c1a04a4d997f89b62a86de93b26084728 Mon Sep 17 00:00:00 2001 From: !shan Date: Thu, 23 Nov 2023 18:47:23 +0100 Subject: [PATCH] Fix config on application bootstrap (#9152) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ♻️ Add allowedMethods in config * ♻️ Update dataPath to have path without homedir * 🔥 Revert dataPath change --- .../templates/lisk-template-ts/generators/init_generator.ts | 2 ++ commander/src/utils/config.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/commander/src/bootstrapping/templates/lisk-template-ts/generators/init_generator.ts b/commander/src/bootstrapping/templates/lisk-template-ts/generators/init_generator.ts index bb0a0bc4422..5f2630d7c61 100644 --- a/commander/src/bootstrapping/templates/lisk-template-ts/generators/init_generator.ts +++ b/commander/src/bootstrapping/templates/lisk-template-ts/generators/init_generator.ts @@ -102,6 +102,8 @@ export default class InitGenerator extends Generator { this.answers.chainID, '--output', 'config/default', + '--label', + this.answers.name, ]); // create passphrase to generate all the keys const passphrase = Mnemonic.generateMnemonic(256); diff --git a/commander/src/utils/config.ts b/commander/src/utils/config.ts index 3d167839bbb..192356dd0db 100644 --- a/commander/src/utils/config.ts +++ b/commander/src/utils/config.ts @@ -8,6 +8,7 @@ export const defaultConfig = { modes: ['ipc'], port: 7887, host: '127.0.0.1', + allowedMethods: [], }, network: { version: '1.0',