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
c95dfec5
Commit
c95dfec5
authored
Oct 06, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push data instead of assign
parent
3bc238b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
20 deletions
+3
-20
main.js
main.js
+3
-20
No files found.
main.js
View file @
c95dfec5
(
function
(
window
)
{
function
isPromise
(
o
)
{
return
typeof
o
===
"object"
&&
o
.
then
return
o
instanceof
Promise
}
var
eth
=
{
...
...
@@ -111,7 +111,7 @@
return
Promise
.
all
(
promises
).
then
(
function
()
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
params
.
data
=
params
.
data
.
join
(
""
);
eth
.
provider
.
send
({
call
:
"transact"
,
args
:
[
params
]},
function
(
data
)
{
eth
.
provider
.
send
({
call
:
"transact"
,
args
:
[
"0x"
+
params
]},
function
(
data
)
{
if
(
data
[
1
])
reject
(
data
[
0
]);
else
...
...
@@ -395,7 +395,7 @@
if
(
this
.
provider
!==
undefined
)
{
this
.
provider
.
send
(
data
);
}
else
{
this
.
queued
=
data
;
this
.
queued
.
push
(
data
)
;
}
};
...
...
@@ -564,20 +564,3 @@
window
.
eth
=
eth
;
})(
this
);
/*
function eth.provider.send(data, cb) {
data.seed = g_seed;
if(cb) {
eth._callbacks[data.seed] = cb;
}
if(data.args === undefined) {
data.args = [];
}
g_seed++;
window._messagingAdapter.call(this, data)
}
*/
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