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
09dc7a4a
Commit
09dc7a4a
authored
Dec 05, 2019
by
aniket-engg
Committed by
Aniket
Dec 06, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remix-lib tests fixes
parent
399b878a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
txResultHelper.js
remix-lib/src/helpers/txResultHelper.js
+1
-1
txResultHelper.js
remix-lib/test/txResultHelper.js
+3
-5
No files found.
remix-lib/src/helpers/txResultHelper.js
View file @
09dc7a4a
...
...
@@ -27,7 +27,7 @@ function resultToRemixTx (txResult) {
if
(
isHexString
(
result
))
{
returnValue
=
result
}
else
if
(
execResult
!==
undefined
)
{
returnValue
=
execResult
.
return
returnValue
=
execResult
.
return
Value
errorMessage
=
execResult
.
exceptionError
}
...
...
remix-lib/test/txResultHelper.js
View file @
09dc7a4a
...
...
@@ -46,12 +46,11 @@ const VM_RESULT = {
gasRefund
:
new
BN
(
0
),
gasUsed
:
new
BN
(
GAS_USED_INT
),
status
:
STATUS_OK
,
vm
:
{
exception
:
1
,
execResult
:
{
exceptionError
:
null
,
gasRefund
:
new
BN
(
0
),
gasUsed
:
new
BN
(
GAS_USED_INT
),
return
:
RETURN_VALUE_BUFFER
return
Value
:
RETURN_VALUE_BUFFER
}
},
transactionHash
:
TRANSACTION_HASH
...
...
@@ -103,8 +102,7 @@ tape('converts VM result to RemixTx', function (t) {
t
.
equal
(
remixTx
.
return
,
RETURN_VALUE_HEX
)
t
.
equal
(
remixTx
.
error
,
null
)
txResult
.
result
.
vm
.
exception
=
0
txResult
.
result
.
vm
.
exceptionError
=
'this is an error'
txResult
.
result
.
execResult
.
exceptionError
=
'this is an error'
remixTx
=
resultToRemixTx
(
txResult
)
t
.
equal
(
remixTx
.
error
,
'this is an error'
)
...
...
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