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
ec74fc05
Commit
ec74fc05
authored
Jan 15, 2015
by
Marek Kotewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gulp
parent
46b932cc
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
ethereum.js
dist/ethereum.js
+13
-3
ethereum.js.map
dist/ethereum.js.map
+2
-2
ethereum.min.js
dist/ethereum.min.js
+1
-1
abi.js
lib/abi.js
+1
-1
No files found.
dist/ethereum.js
View file @
ec74fc05
...
...
@@ -58,9 +58,10 @@ var findMethodIndex = function (json, methodName) {
/// @param string string to be padded
/// @param number of characters that result string should have
/// @param sign, by default 0
/// @returns right aligned string
var
padLeft
=
function
(
string
,
chars
)
{
return
new
Array
(
chars
-
string
.
length
+
1
).
join
(
"0"
)
+
string
;
var
padLeft
=
function
(
string
,
chars
,
sign
)
{
return
new
Array
(
chars
-
string
.
length
+
1
).
join
(
sign
?
sign
:
"0"
)
+
string
;
};
/// @param expected type prefix (string)
...
...
@@ -87,8 +88,17 @@ var setupInputTypes = function () {
/// @returns right-aligned byte representation of int
var
formatInt
=
function
(
value
)
{
var
padding
=
32
*
2
;
if
(
typeof
value
===
'number'
)
if
(
typeof
value
===
'number'
)
{
if
(
value
<
0
)
{
// two's complement
// TODO: fix big numbers support
value
=
((
value
)
>>>
0
).
toString
(
16
);
return
padLeft
(
value
,
padding
,
'f'
);
}
value
=
value
.
toString
(
16
);
}
else
if
(
value
.
indexOf
(
'0x'
)
===
0
)
value
=
value
.
substr
(
2
);
else
if
(
typeof
value
===
'string'
)
...
...
dist/ethereum.js.map
View file @
ec74fc05
This diff is collapsed.
Click to expand it.
dist/ethereum.min.js
View file @
ec74fc05
This diff is collapsed.
Click to expand it.
lib/abi.js
View file @
ec74fc05
...
...
@@ -92,7 +92,7 @@ var setupInputTypes = function () {
// two's complement
// TODO: fix big numbers support
value
=
((
value
)
>>>
0
).
toString
(
16
)
value
=
((
value
)
>>>
0
).
toString
(
16
)
;
return
padLeft
(
value
,
padding
,
'f'
);
}
value
=
value
.
toString
(
16
);
...
...
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