Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
aba399e1
Commit
aba399e1
authored
May 30, 2018
by
Iuri Matias
Committed by
yann300
Jun 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
find import for remix-tests
parent
ae515bd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
compiler-imports.js
src/app/compiler/compiler-imports.js
+4
-0
No files found.
src/app/compiler/compiler-imports.js
View file @
aba399e1
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
var
base64
=
require
(
'js-base64'
).
Base64
var
base64
=
require
(
'js-base64'
).
Base64
var
swarmgw
=
require
(
'swarmgw'
)
var
swarmgw
=
require
(
'swarmgw'
)
var
request
=
require
(
'request'
)
var
request
=
require
(
'request'
)
var
assertLibCode
=
require
(
'remix-tests'
).
assertLibCode
module
.
exports
=
class
CompilerImports
{
module
.
exports
=
class
CompilerImports
{
constructor
()
{
constructor
()
{
...
@@ -70,6 +71,9 @@ module.exports = class CompilerImports {
...
@@ -70,6 +71,9 @@ module.exports = class CompilerImports {
import
(
url
,
loadingCb
,
cb
)
{
import
(
url
,
loadingCb
,
cb
)
{
var
self
=
this
var
self
=
this
if
(
url
===
'remix_tests.sol'
)
{
return
cb
(
null
,
assertLibCode
,
'remix_tests.sol'
,
'remix_tests'
,
'remix_tests.sol'
)
}
var
imported
=
this
.
previouslyHandled
[
url
]
var
imported
=
this
.
previouslyHandled
[
url
]
if
(
imported
)
{
if
(
imported
)
{
return
cb
(
null
,
imported
.
content
,
imported
.
cleanUrl
,
imported
.
type
,
url
)
return
cb
(
null
,
imported
.
content
,
imported
.
cleanUrl
,
imported
.
type
,
url
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment