run static analysis

pull/5370/head
aniket-engg 5 months ago committed by Aniket
parent 7d2116f4b6
commit 5402225b76
  1. 1
      apps/remix-ide/src/app/tabs/locales/en/solidity.json
  2. 24
      libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx

@ -52,6 +52,7 @@
"solidity._comment_contract-selection.tsx": "libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx",
"solidity.publishOn": "Publish on",
"solidity.runStaticAnalysis": "Run Static Analysis",
"solidity.flatten": "Flatten contracts before UML generation.",
"solidity.generateUML": "Generate a UML diagram of your contract.",
"solidity.flattenLabel": "Flatten",

@ -245,6 +245,10 @@ export const ContractSelection = (props: ContractSelectionProps) => {
return bytecodeObj.object
}
const runStaticAnalysis = () => {
console.log('runStaticAnalysis')
}
return (
// define swarm logo
<>
@ -264,6 +268,26 @@ export const ContractSelection = (props: ContractSelectionProps) => {
</select>
</div>
<article className="mt-2 pb-0">
<button
id="runStaticAnalysis"
className="btn btn-secondary btn-block"
onClick={() => {
handlePublishToStorage('ipfs')
}}
>
<CustomTooltip
placement={'auto-end'}
tooltipId="runStaticAnalysisTooltip"
tooltipClasses="text-nowrap"
tooltipText={`${intl.formatMessage({
id: 'solidity.runStaticAnalysis'
})}`}
>
<span>
<FormattedMessage id="solidity.runStaticAnalysis" />
</span>
</CustomTooltip>
</button>
<button
id="publishOnIpfs"
className="btn btn-secondary btn-block"

Loading…
Cancel
Save