Merge pull request #1009 from ethereum/yann300-patch-6

Fix importing Solidity File
pull/5370/head
yann300 6 years ago committed by GitHub
commit 7f0c3899e7
  1. 2
      remix-solidity/src/compiler/compiler.js

@ -313,7 +313,7 @@ function Compiler (handleImportCall) {
while ((match = importRegex.exec(files[fileName].content))) {
var importFilePath = match[1]
if (importFilePath.startsWith('./')) {
var path = /(.*\/).*/.exec(target)
var path = /(.*\/).*/.exec(fileName)
if (path !== null) {
importFilePath = importFilePath.replace('./', path[1])
} else {

Loading…
Cancel
Save