diff --git a/apps/remix-ide/src/app/tabs/locales/en/solidity.json b/apps/remix-ide/src/app/tabs/locales/en/solidity.json index b9b51dbbf5..fa28d45670 100644 --- a/apps/remix-ide/src/app/tabs/locales/en/solidity.json +++ b/apps/remix-ide/src/app/tabs/locales/en/solidity.json @@ -53,6 +53,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.runSolidityScan": "Run Solidity Scan", "solidity.flatten": "Flatten contracts before UML generation.", "solidity.generateUML": "Generate a UML diagram of your contract.", "solidity.flattenLabel": "Flatten", diff --git a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx index 1d4d24b493..caf6ebc805 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx @@ -249,6 +249,10 @@ export const ContractSelection = (props: ContractSelectionProps) => { console.log('runStaticAnalysis') } + const runSolidityScan = () => { + console.log('runSolidityScan') + } + return ( // define swarm logo <> @@ -272,7 +276,7 @@ export const ContractSelection = (props: ContractSelectionProps) => { id="runStaticAnalysis" className="btn btn-secondary btn-block" onClick={() => { - handlePublishToStorage('ipfs') + runStaticAnalysis() }} > { +