Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
3073511e
Commit
3073511e
authored
Jan 22, 2015
by
Marek Kotewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
not parsing transaction output
parent
e45db42e
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
23 deletions
+27
-23
ethereum.js
dist/ethereum.js
+12
-10
ethereum.js.map
dist/ethereum.js.map
+2
-2
ethereum.min.js
dist/ethereum.min.js
+1
-1
contract.js
lib/contract.js
+12
-10
No files found.
dist/ethereum.js
View file @
3073511e
...
@@ -487,23 +487,25 @@ var contract = function (address, desc) {
...
@@ -487,23 +487,25 @@ var contract = function (address, desc) {
var
options
=
result
.
_options
||
{};
var
options
=
result
.
_options
||
{};
options
.
to
=
address
;
options
.
to
=
address
;
options
.
data
=
signature
+
parsed
;
options
.
data
=
signature
+
parsed
;
var
isTransact
=
result
.
_isTransact
;
// reset
result
.
_options
=
{};
result
.
_isTransact
=
false
;
var
output
=
""
;
if
(
isTransact
)
{
if
(
result
.
_isTransact
)
{
// it's used byt natspec.js
// it's used byt natspec.js
// TODO: figure out better way to solve this
// TODO: figure out better way to solve this
web3
.
_currentContractAbi
=
desc
;
web3
.
_currentContractAbi
=
desc
;
web3
.
_currentContractAddress
=
address
;
web3
.
_currentContractAddress
=
address
;
output
=
web3
.
eth
.
transact
(
options
);
// transactions do not have any output, cause we do not know, when they will be processed
}
else
{
web3
.
eth
.
transact
(
options
);
output
=
web3
.
eth
.
call
(
options
)
;
return
;
}
}
// reset
var
output
=
web3
.
eth
.
call
(
options
);
result
.
_options
=
{};
result
.
_isTransact
=
false
;
return
outputParser
[
displayName
][
typeName
](
output
);
return
outputParser
[
displayName
][
typeName
](
output
);
};
};
...
...
dist/ethereum.js.map
View file @
3073511e
This diff is collapsed.
Click to expand it.
dist/ethereum.min.js
View file @
3073511e
This diff is collapsed.
Click to expand it.
lib/contract.js
View file @
3073511e
...
@@ -76,23 +76,25 @@ var contract = function (address, desc) {
...
@@ -76,23 +76,25 @@ var contract = function (address, desc) {
var
options
=
result
.
_options
||
{};
var
options
=
result
.
_options
||
{};
options
.
to
=
address
;
options
.
to
=
address
;
options
.
data
=
signature
+
parsed
;
options
.
data
=
signature
+
parsed
;
var
isTransact
=
result
.
_isTransact
;
// reset
result
.
_options
=
{};
result
.
_isTransact
=
false
;
var
output
=
""
;
if
(
isTransact
)
{
if
(
result
.
_isTransact
)
{
// it's used byt natspec.js
// it's used byt natspec.js
// TODO: figure out better way to solve this
// TODO: figure out better way to solve this
web3
.
_currentContractAbi
=
desc
;
web3
.
_currentContractAbi
=
desc
;
web3
.
_currentContractAddress
=
address
;
web3
.
_currentContractAddress
=
address
;
output
=
web3
.
eth
.
transact
(
options
);
// transactions do not have any output, cause we do not know, when they will be processed
}
else
{
web3
.
eth
.
transact
(
options
);
output
=
web3
.
eth
.
call
(
options
)
;
return
;
}
}
// reset
var
output
=
web3
.
eth
.
call
(
options
);
result
.
_options
=
{};
result
.
_isTransact
=
false
;
return
outputParser
[
displayName
][
typeName
](
output
);
return
outputParser
[
displayName
][
typeName
](
output
);
};
};
...
...
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