From d7f1b0513b4803899dd038597c88376c19412f81 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Fri, 25 Jun 2021 10:55:37 +0530 Subject: [PATCH] terminal log for success --- .../static-analyser/src/lib/remix-ui-static-analyser.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx b/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx index 2e3329736e..38b1c98262 100644 --- a/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx +++ b/libs/remix-ui/static-analyser/src/lib/remix-ui-static-analyser.tsx @@ -213,6 +213,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { const { currentVersion, optimize, evmVersion } = compilerState props.analysisModule.call('slither', 'analyse', state.file, { currentVersion, optimize, evmVersion }).then((result) => { if (result.status) { + props.analysisModule.call('terminal', 'log', { type: 'info', value: `[Slither Analysis]: Success!! ${result.count} warnings found.` }) const report = result.data report.map((item) => { let location: any = {} @@ -254,15 +255,15 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { warningErrors.push(options) warningMessage.push({ msg, options, hasWarning: true, warningModuleName: 'Slither Analysis' }) }) - showWarnings(warningMessage, 'warningModuleName') setShowSlitherResult('block') + showWarnings(warningMessage, 'warningModuleName') props.event.trigger('staticAnaysisWarning', [warningCount]) } }) }) } else { + setShowSlitherResult('none') showWarnings(warningMessage, 'warningModuleName') - setShowSlitherResult('node') if (categoryIndex.length > 0) { props.event.trigger('staticAnaysisWarning', [warningCount]) }