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
0ff6128f
Commit
0ff6128f
authored
Jan 04, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
standard
parent
87992d0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
compiler-sourceVerifier-fetchAndCompile.js
...c/app/compiler/compiler-sourceVerifier-fetchAndCompile.js
+4
-4
No files found.
apps/remix-ide/src/app/compiler/compiler-sourceVerifier-fetchAndCompile.js
View file @
0ff6128f
...
@@ -99,7 +99,7 @@ export default class FetchAndCompile extends Plugin {
...
@@ -99,7 +99,7 @@ export default class FetchAndCompile extends Plugin {
const
path
=
`
${
targetPath
}
/
${
name
}
/
${
contractAddress
}
/
${
file
}
`
const
path
=
`
${
targetPath
}
/
${
name
}
/
${
contractAddress
}
/
${
file
}
`
await
this
.
call
(
'fileManager'
,
'setFile'
,
path
,
source
.
content
)
await
this
.
call
(
'fileManager'
,
'setFile'
,
path
,
source
.
content
)
compilationTargets
[
path
]
=
{
content
:
source
.
content
}
compilationTargets
[
path
]
=
{
content
:
source
.
content
}
}
}
break
break
}
}
}
}
...
@@ -116,9 +116,9 @@ export default class FetchAndCompile extends Plugin {
...
@@ -116,9 +116,9 @@ export default class FetchAndCompile extends Plugin {
try
{
try
{
setTimeout
(
_
=>
this
.
emit
(
'compiling'
,
settings
),
0
)
setTimeout
(
_
=>
this
.
emit
(
'compiling'
,
settings
),
0
)
const
compData
=
await
compile
(
const
compData
=
await
compile
(
compilationTargets
,
compilationTargets
,
settings
,
settings
,
(
url
,
cb
)
=>
this
.
call
(
'contentImport'
,
'resolveAndSave'
,
url
).
then
((
result
)
=>
cb
(
null
,
result
)).
catch
((
error
)
=>
cb
(
error
.
message
)))
(
url
,
cb
)
=>
this
.
call
(
'contentImport'
,
'resolveAndSave'
,
url
).
then
((
result
)
=>
cb
(
null
,
result
)).
catch
((
error
)
=>
cb
(
error
.
message
)))
compilersartefacts
.
addResolvedContract
(
contractAddress
,
compData
)
compilersartefacts
.
addResolvedContract
(
contractAddress
,
compData
)
return
compData
return
compData
}
catch
(
e
)
{
}
catch
(
e
)
{
...
...
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