|
|
|
@ -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) |
|
|
|
|