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
62f818ec
Commit
62f818ec
authored
Apr 19, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup and minor refactor
parent
f6e73f72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
txProcess.js
remix-simulator/src/txProcess.js
+4
-11
No files found.
remix-simulator/src/txProcess.js
View file @
62f818ec
...
...
@@ -12,17 +12,16 @@ function runTx (payload, from, to, data, value, gasLimit, txRunner, callbacks, i
if
(
err
)
{
return
callback
(
err
)
}
let
toReturn
if
(
isCall
)
{
toReturn
=
'0x'
+
result
.
result
.
vm
.
return
.
toString
(
'hex'
)
let
toReturn
=
'0x'
+
result
.
result
.
vm
.
return
.
toString
(
'hex'
)
if
(
toReturn
===
'0x'
)
{
toReturn
=
'0x0'
}
}
else
{
toReturn
=
result
.
transactionHash
return
callback
(
null
,
jsonRPCResponse
(
payload
.
id
,
toReturn
))
}
callback
(
null
,
jsonRPCResponse
(
payload
.
id
,
toReturn
))
callback
(
null
,
jsonRPCResponse
(
payload
.
id
,
result
.
transactionHash
))
}
TxExecution
.
callFunction
(
from
,
to
,
data
,
value
,
gasLimit
,
null
,
txRunner
,
callbacks
,
finalCallback
,
isCall
)
...
...
@@ -33,7 +32,6 @@ function createContract (payload, from, data, value, gasLimit, txRunner, callbac
if
(
err
)
{
return
callback
(
err
)
}
// let contractAddress = ('0x' + result.result.createdAddress.toString('hex'))
callback
(
null
,
jsonRPCResponse
(
payload
.
id
,
result
.
transactionHash
))
}
...
...
@@ -46,12 +44,8 @@ function processTx (accounts, payload, isCall, callback) {
},
logHtmlMessage
:
(
msg
)
=>
{
},
// config: self._api.config,
config
:
{
getUnpersistedProperty
:
(
key
)
=>
{
// if (key === 'settings/always-use-vm') {
// return true
// }
return
true
},
get
:
()
=>
{
...
...
@@ -62,7 +56,6 @@ function processTx (accounts, payload, isCall, callback) {
cb
()
},
personalMode
:
()
=>
{
// return self._api.config.get('settings/personal-mode')
return
false
}
}
...
...
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