|
|
|
@ -153,7 +153,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
|
const warningMessage = [] |
|
|
|
|
const warningErrors = [] |
|
|
|
|
|
|
|
|
|
/******************** Remix Analysis ********************/ |
|
|
|
|
// Remix Analysis
|
|
|
|
|
runner.run(lastCompilationResult, categoryIndex, results => { |
|
|
|
|
results.map((result) => { |
|
|
|
|
let moduleName
|
|
|
|
@ -207,7 +207,7 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
|
warningMessage.push({ msg, options, hasWarning: true, warningModuleName: moduleName }) |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
/******************** Slither Analysis ********************/ |
|
|
|
|
// Slither Analysis
|
|
|
|
|
if (slitherEnabled) { |
|
|
|
|
props.analysisModule.call('solidity-logic', 'getCompilerState').then((compilerState) => { |
|
|
|
|
const { currentVersion, optimize, evmVersion } = compilerState |
|
|
|
@ -469,8 +469,8 @@ export const RemixUiStaticAnalyser = (props: RemixUiStaticAnalyserProps) => { |
|
|
|
|
(Object.entries(warningState).map((element, index) => ( |
|
|
|
|
<div key={index}> |
|
|
|
|
<span className="text-dark h6">{element[0]}</span> |
|
|
|
|
{element[1]['map']((x, i) => ( |
|
|
|
|
x.hasWarning ? ( |
|
|
|
|
{element[1]['map']((x, i) => ( // eslint-disable-line dot-notation
|
|
|
|
|
x.hasWarning ? ( // eslint-disable-next-line dot-notation
|
|
|
|
|
<div id={`staticAnalysisModule${element[1]['warningModuleName']}`} key={i}> |
|
|
|
|
<ErrorRenderer message={x.msg} opt={x.options} warningErrors={ x.warningErrors} editor={props.analysisModule}/> |
|
|
|
|
</div> |
|
|
|
|