Fix solidity compiler breaking

pull/5370/head
ioedeveloper 6 months ago
parent 125b4cb357
commit 755c945b84
  1. 2
      libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx

@ -373,7 +373,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => {
// Load solc compiler version according to pragma in contract file
const _setCompilerVersionFromPragma = (filename: string) => {
if (!solJsonBinData.selectorList) return
if (solJsonBinData && !solJsonBinData.selectorList) return
api.readFile(filename).then((data) => {
if (!data) return
const pragmaArr = data.match(/(pragma solidity (.+?);)/g)

Loading…
Cancel
Save