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
edfd2757
Commit
edfd2757
authored
Apr 02, 2015
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better decoding of uint*
parent
b10e33c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
types.go
rpc/types.go
+6
-2
No files found.
rpc/types.go
View file @
edfd2757
...
@@ -101,11 +101,15 @@ func newHexData(input interface{}) *hexdata {
...
@@ -101,11 +101,15 @@ func newHexData(input interface{}) *hexdata {
case
int16
:
case
int16
:
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
uint16
:
case
uint16
:
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
buff
:=
make
([]
byte
,
8
)
binary
.
BigEndian
.
PutUint16
(
buff
,
input
)
d
.
data
=
buff
case
int32
:
case
int32
:
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
uint32
:
case
uint32
:
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
buff
:=
make
([]
byte
,
8
)
binary
.
BigEndian
.
PutUint32
(
buff
,
input
)
d
.
data
=
buff
case
string
:
// hexstring
case
string
:
// hexstring
d
.
data
=
common
.
Big
(
input
)
.
Bytes
()
d
.
data
=
common
.
Big
(
input
)
.
Bytes
()
default
:
default
:
...
...
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