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
5ddd9b1d
Unverified
Commit
5ddd9b1d
authored
Mar 20, 2019
by
yann300
Committed by
GitHub
Mar 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1136 from ethereum/fixRemixLibTest
run remix-lib tests on v0.5.4+commit.9549d8ff
parents
696567fc
925c4b1a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
txFormat.js
remix-lib/test/txFormat.js
+9
-0
compiler.js
remix-tests/src/compiler.js
+1
-1
No files found.
remix-lib/test/txFormat.js
View file @
5ddd9b1d
...
@@ -6,8 +6,17 @@ var util = require('../src/util')
...
@@ -6,8 +6,17 @@ var util = require('../src/util')
var
compiler
=
require
(
'solc'
)
var
compiler
=
require
(
'solc'
)
var
compilerInput
=
require
(
'../src/helpers/compilerHelper'
).
compilerInput
var
compilerInput
=
require
(
'../src/helpers/compilerHelper'
).
compilerInput
var
executionContext
=
require
(
'../src/execution/execution-context'
)
var
executionContext
=
require
(
'../src/execution/execution-context'
)
var
solidityVersion
=
'v0.5.4+commit.9549d8ff'
/* tape *********************************************************** */
/* tape *********************************************************** */
tape
(
'load compiler '
+
solidityVersion
,
function
(
t
)
{
compiler
.
loadRemoteVersion
(
solidityVersion
,
(
error
,
solcSnapshot
)
=>
{
if
(
error
)
console
.
log
(
error
)
console
.
warn
(
'testing *txFormat* against'
,
solidityVersion
)
compiler
=
solcSnapshot
t
.
end
()
})
})
var
context
var
context
tape
(
'ContractParameters - (TxFormat.buildData) - format input parameters'
,
function
(
t
)
{
tape
(
'ContractParameters - (TxFormat.buildData) - format input parameters'
,
function
(
t
)
{
...
...
remix-tests/src/compiler.js
View file @
5ddd9b1d
...
@@ -4,7 +4,7 @@ var async = require('async')
...
@@ -4,7 +4,7 @@ var async = require('async')
var
path
=
require
(
'path'
)
var
path
=
require
(
'path'
)
let
RemixCompiler
=
require
(
'remix-solidity'
).
Compiler
let
RemixCompiler
=
require
(
'remix-solidity'
).
Compiler
String
.
prototype
.
regexIndexOf
=
function
(
regex
,
startpos
)
{
String
.
prototype
.
regexIndexOf
=
function
(
regex
,
startpos
)
{
// eslint-disable-line
var
indexOf
=
this
.
substring
(
startpos
||
0
).
search
(
regex
)
var
indexOf
=
this
.
substring
(
startpos
||
0
).
search
(
regex
)
return
(
indexOf
>=
0
)
?
(
indexOf
+
(
startpos
||
0
))
:
indexOf
return
(
indexOf
>=
0
)
?
(
indexOf
+
(
startpos
||
0
))
:
indexOf
}
}
...
...
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