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
6ef55369
Commit
6ef55369
authored
Sep 21, 2017
by
yann300
Committed by
GitHub
Sep 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #812 from ethereum/fixImport2
Fix url import
parents
446d9ff5
b0a6b189
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
app.js
src/app.js
+1
-3
staticAnalysisIntegration-test.js
test/staticanalysis/staticAnalysisIntegration-test.js
+1
-1
No files found.
src/app.js
View file @
6ef55369
...
...
@@ -371,15 +371,13 @@ function run () {
var
compiler
=
new
Compiler
((
url
,
cb
)
=>
{
var
provider
=
fileManager
.
fileProviderOf
(
url
)
if
(
provider
&&
provider
.
exists
(
url
))
{
cb
(
null
,
provider
.
get
(
url
,
cb
)
)
return
provider
.
get
(
url
,
cb
)
}
handleImports
.
import
(
url
,
(
error
,
content
)
=>
{
if
(
!
error
)
{
// FIXME: at some point we should invalidate the browser cache
filesProviders
[
'browser'
].
addReadOnly
(
url
,
content
)
cb
(
null
,
content
)
}
else
{
modalDialogCustom
.
alert
(
'Unable to import: url'
)
}
})
})
...
...
test/staticanalysis/staticAnalysisIntegration-test.js
View file @
6ef55369
...
...
@@ -343,7 +343,7 @@ test('Integration test blockBlockhash.js', function (t) {
'notReentrant.sol'
:
0
,
'structReentrant.sol'
:
0
,
'thisLocal.sol'
:
0
,
'globals.sol'
:
1
,
'globals.sol'
:
0
,
// was 1 !! @TODO
'library.sol'
:
0
,
'transfer.sol'
:
0
,
'ctor.sol'
:
0
...
...
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