From 2b8cdecc821d25af90cb6acdbe37a824e66c1d3c Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 12 Dec 2022 09:54:52 +0100 Subject: [PATCH] fixes --- apps/remix-ide/src/app/plugins/code-format.ts | 1 + libs/remix-ws-templates/src/templates/zeroxErc20/index.ts | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/remix-ide/src/app/plugins/code-format.ts b/apps/remix-ide/src/app/plugins/code-format.ts index 69bc9893de..ac8d970936 100644 --- a/apps/remix-ide/src/app/plugins/code-format.ts +++ b/apps/remix-ide/src/app/plugins/code-format.ts @@ -192,6 +192,7 @@ export class CodeFormat extends Plugin { } else { parsed = defaultOptions await this.call('fileManager', 'writeFile', '.prettierrc.json', JSON.stringify(parsed, null, 2)) + await this.call('notification', 'toast', 'A prettier config file has been created in the workspace.') } if (!parsed && prettierConfigFile) { diff --git a/libs/remix-ws-templates/src/templates/zeroxErc20/index.ts b/libs/remix-ws-templates/src/templates/zeroxErc20/index.ts index ca5eeb6dbe..311262db91 100644 --- a/libs/remix-ws-templates/src/templates/zeroxErc20/index.ts +++ b/libs/remix-ws-templates/src/templates/zeroxErc20/index.ts @@ -13,8 +13,6 @@ export default async () => { // @ts-ignore 'tests/SampleERC20_test.sol': (await import('raw-loader!./tests/SampleERC20_test.sol')).default, // @ts-ignore - '.prettierrc.json': (await import('raw-loader!./.prettierrc')).default, - // @ts-ignore - '.prettierrc2.json': (await import('raw-loader!./.prettierrc')).default + '.prettierrc.json': (await import('raw-loader!./.prettierrc')).default } } \ No newline at end of file