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
b4a512dd
Commit
b4a512dd
authored
Nov 22, 2016
by
yann300
Committed by
GitHub
Nov 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #338 from ethereum/fixCall2
Fix call result
parents
55c41393
ca823136
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
universal-dapp.js
src/universal-dapp.js
+10
-1
No files found.
src/universal-dapp.js
View file @
b4a512dd
...
@@ -779,7 +779,16 @@ UniversalDApp.prototype.rawRunTx = function (args, cb) {
...
@@ -779,7 +779,16 @@ UniversalDApp.prototype.rawRunTx = function (args, cb) {
}
}
if
(
args
.
useCall
)
{
if
(
args
.
useCall
)
{
tx
.
gas
=
gasLimit
tx
.
gas
=
gasLimit
self
.
web3
.
eth
.
call
(
tx
,
cb
)
var
callhash
=
self
.
web3
.
sha3
(
JSON
.
stringify
(
tx
))
self
.
web3
.
eth
.
call
(
tx
,
function
(
error
,
result
)
{
if
(
error
)
{
return
cb
(
error
)
}
cb
(
null
,
{
result
:
result
,
transactionHash
:
callhash
})
})
}
else
{
}
else
{
self
.
web3
.
eth
.
estimateGas
(
tx
,
function
(
err
,
resp
)
{
self
.
web3
.
eth
.
estimateGas
(
tx
,
function
(
err
,
resp
)
{
if
(
err
)
{
if
(
err
)
{
...
...
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