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
b39483fe
Unverified
Commit
b39483fe
authored
Nov 14, 2018
by
yann300
Committed by
GitHub
Nov 14, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1049 from ethereum/fixUnitTesting
Fix unit testing error message
parents
8a4a1510
379dbfac
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
7 deletions
+9
-7
web3VmProvider.js
remix-lib/src/web3Provider/web3VmProvider.js
+1
-0
package.json
remix-simulator/package.json
+2
-1
transactions.js
remix-simulator/src/methods/transactions.js
+1
-1
package.json
remix-tests/package.json
+1
-1
compiler.js
remix-tests/src/compiler.js
+1
-1
index.js
remix-tests/src/index.js
+1
-1
testRunner.js
remix-tests/src/testRunner.js
+2
-2
No files found.
remix-lib/src/web3Provider/web3VmProvider.js
View file @
b39483fe
...
...
@@ -122,6 +122,7 @@ web3VmProvider.prototype.txProcessed = function (self, data) {
}
self
.
txsReceipt
[
self
.
processingHash
].
logs
=
logs
self
.
txsReceipt
[
self
.
processingHash
].
transactionHash
=
self
.
processingHash
self
.
txsReceipt
[
self
.
processingHash
].
status
=
'0x'
+
data
.
vm
.
exception
.
toString
(
16
)
if
(
data
.
createdAddress
)
{
var
address
=
util
.
hexConvert
(
data
.
createdAddress
)
...
...
remix-simulator/package.json
View file @
b39483fe
...
...
@@ -15,6 +15,7 @@
"main"
:
"./index.js"
,
"dependencies"
:
{
"ansi-gray"
:
"^0.1.1"
,
"babel-eslint"
:
"^7.1.1"
,
"babel-plugin-transform-object-assign"
:
"^6.22.0"
,
"babel-preset-es2017"
:
"^6.24.1"
,
"babelify"
:
"^7.3.0"
,
...
...
@@ -23,7 +24,7 @@
"express"
:
"^4.16.3"
,
"fast-async"
:
"^6.3.7"
,
"merge"
:
"^1.2.0"
,
"remix-lib"
:
"
^0.2.5
"
,
"remix-lib"
:
"
0.3.10
"
,
"standard"
:
"^10.0.3"
,
"time-stamp"
:
"^2.0.0"
,
"web3"
:
"1.0.0-beta.27"
...
...
remix-simulator/src/methods/transactions.js
View file @
b39483fe
...
...
@@ -39,7 +39,7 @@ Transactions.prototype.eth_getTransactionReceipt = function (payload, cb) {
'cumulativeGasUsed'
:
'0x06345f'
,
'contractAddress'
:
receipt
.
contractAddress
,
'logs'
:
receipt
.
logs
,
'status'
:
1
'status'
:
receipt
.
status
}
cb
(
null
,
r
)
...
...
remix-tests/package.json
View file @
b39483fe
...
...
@@ -47,7 +47,7 @@
"signale"
:
"^1.2.1"
,
"solc"
:
"^0.4.24"
,
"standard"
:
"^10.0.3"
,
"web3"
:
"1.0.0-beta.3
4
"
,
"web3"
:
"1.0.0-beta.3
6
"
,
"winston"
:
"^3.0.0"
},
"peerDependencies"
:
{
...
...
remix-tests/src/compiler.js
View file @
b39483fe
...
...
@@ -71,7 +71,7 @@ function compileFileOrFiles (filename, isDirectory, opts, cb) {
})
}
function
compileContractSources
(
sources
,
importFileCb
,
cb
,
opts
)
{
function
compileContractSources
(
sources
,
importFileCb
,
opts
,
cb
)
{
let
compiler
,
filepath
let
accounts
=
opts
.
accounts
||
[]
// Iterate over sources keys. Inject test libraries. Inject test library import statements.
...
...
remix-tests/src/index.js
View file @
b39483fe
...
...
@@ -29,7 +29,7 @@ var runTestSources = function (contractSources, testCallback, resultCallback, fi
})
},
function
compile
(
next
)
{
Compiler
.
compileContractSources
(
contractSources
,
importFileCb
,
next
)
Compiler
.
compileContractSources
(
contractSources
,
importFileCb
,
{
accounts
},
next
)
},
function
deployAllContracts
(
compilationResult
,
next
)
{
Deployer
.
deployAll
(
compilationResult
,
web3
,
function
(
err
,
contracts
)
{
...
...
remix-tests/src/testRunner.js
View file @
b39483fe
...
...
@@ -133,8 +133,8 @@ function runTest (testName, testObject, contractDetails, opts, testCallback, res
next
(
err
)
})
}
},
function
()
{
resultsCallback
(
null
,
{
},
function
(
error
)
{
resultsCallback
(
error
,
{
passingNum
:
passingNum
,
failureNum
:
failureNum
,
timePassed
:
timePassed
...
...
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