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
6603b798
Commit
6603b798
authored
Nov 09, 2020
by
aniket-engg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
run in test source compilation
parent
1d68ec3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
compiler.ts
libs/remix-tests/src/compiler.ts
+2
-1
types.ts
libs/remix-tests/src/types.ts
+2
-1
No files found.
libs/remix-tests/src/compiler.ts
View file @
6603b798
...
@@ -180,10 +180,11 @@ export function compileContractSources(sources: SrcIfc, compilerConfig: Compiler
...
@@ -180,10 +180,11 @@ export function compileContractSources(sources: SrcIfc, compilerConfig: Compiler
async
.
waterfall
([
async
.
waterfall
([
function
loadCompiler
(
next
)
{
function
loadCompiler
(
next
)
{
const
{
currentCompilerUrl
,
evmVersion
,
optimize
,
usingWorker
}
=
compilerConfig
const
{
currentCompilerUrl
,
evmVersion
,
optimize
,
runs
,
usingWorker
}
=
compilerConfig
compiler
=
new
RemixCompiler
(
importFileCb
)
compiler
=
new
RemixCompiler
(
importFileCb
)
compiler
.
set
(
'evmVersion'
,
evmVersion
)
compiler
.
set
(
'evmVersion'
,
evmVersion
)
compiler
.
set
(
'optimize'
,
optimize
)
compiler
.
set
(
'optimize'
,
optimize
)
compiler
.
set
(
'runs'
,
runs
)
compiler
.
loadVersion
(
usingWorker
,
currentCompilerUrl
)
compiler
.
loadVersion
(
usingWorker
,
currentCompilerUrl
)
// @ts-ignore
// @ts-ignore
compiler
.
event
.
register
(
'compilerLoaded'
,
this
,
(
version
)
=>
{
compiler
.
event
.
register
(
'compilerLoaded'
,
this
,
(
version
)
=>
{
...
...
libs/remix-tests/src/types.ts
View file @
6603b798
...
@@ -53,7 +53,8 @@ export interface CompilerConfiguration {
...
@@ -53,7 +53,8 @@ export interface CompilerConfiguration {
currentCompilerUrl
:
string
,
currentCompilerUrl
:
string
,
evmVersion
:
string
,
evmVersion
:
string
,
optimize
:
boolean
,
optimize
:
boolean
,
usingWorker
:
boolean
usingWorker
:
boolean
,
runs
:
number
}
}
export
interface
CompilationErrors
{
export
interface
CompilationErrors
{
...
...
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