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
b10e33c0
Commit
b10e33c0
authored
Apr 02, 2015
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More types supported
parent
cc45b4d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
types.go
rpc/types.go
+20
-0
No files found.
rpc/types.go
View file @
b10e33c0
...
@@ -74,6 +74,14 @@ func newHexData(input interface{}) *hexdata {
...
@@ -74,6 +74,14 @@ func newHexData(input interface{}) *hexdata {
}
else
{
}
else
{
d
.
data
=
input
.
Bytes
()
d
.
data
=
input
.
Bytes
()
}
}
case
types
.
Bloom
:
d
.
data
=
input
.
Bytes
()
case
*
types
.
Bloom
:
if
input
==
nil
{
d
.
isNil
=
true
}
else
{
d
.
data
=
input
.
Bytes
()
}
case
*
big
.
Int
:
case
*
big
.
Int
:
d
.
data
=
input
.
Bytes
()
d
.
data
=
input
.
Bytes
()
case
int64
:
case
int64
:
...
@@ -86,6 +94,18 @@ func newHexData(input interface{}) *hexdata {
...
@@ -86,6 +94,18 @@ func newHexData(input interface{}) *hexdata {
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
uint
:
case
uint
:
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
int8
:
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
uint8
:
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
int16
:
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
uint16
:
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
int32
:
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
uint32
:
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
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