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
b860b676
Commit
b860b676
authored
Apr 01, 2015
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove extra type assetion
parent
7b739282
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
messages.go
rpc/messages.go
+12
-12
No files found.
rpc/messages.go
View file @
b860b676
...
...
@@ -45,29 +45,29 @@ func (d *hexdata) UnmarshalJSON(b []byte) (err error) {
func
newHexData
(
input
interface
{})
*
hexdata
{
d
:=
new
(
hexdata
)
switch
input
.
(
type
)
{
switch
input
:=
input
.
(
type
)
{
case
[]
byte
:
d
.
data
=
input
.
([]
byte
)
d
.
data
=
input
case
common
.
Hash
:
d
.
data
=
input
.
(
common
.
Hash
)
.
Bytes
()
d
.
data
=
input
.
Bytes
()
case
*
common
.
Hash
:
d
.
data
=
input
.
(
*
common
.
Hash
)
.
Bytes
()
d
.
data
=
input
.
Bytes
()
case
common
.
Address
:
d
.
data
=
input
.
(
common
.
Address
)
.
Bytes
()
d
.
data
=
input
.
Bytes
()
case
*
common
.
Address
:
d
.
data
=
input
.
(
*
common
.
Address
)
.
Bytes
()
d
.
data
=
input
.
Bytes
()
case
*
big
.
Int
:
d
.
data
=
input
.
(
*
big
.
Int
)
.
Bytes
()
d
.
data
=
input
.
Bytes
()
case
int64
:
d
.
data
=
big
.
NewInt
(
input
.
(
int64
)
)
.
Bytes
()
d
.
data
=
big
.
NewInt
(
input
)
.
Bytes
()
case
uint64
:
d
.
data
=
big
.
NewInt
(
int64
(
input
.
(
uint64
)
))
.
Bytes
()
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
int
:
d
.
data
=
big
.
NewInt
(
int64
(
input
.
(
int
)
))
.
Bytes
()
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
uint
:
d
.
data
=
big
.
NewInt
(
int64
(
input
.
(
uint
)
))
.
Bytes
()
d
.
data
=
big
.
NewInt
(
int64
(
input
))
.
Bytes
()
case
string
:
// hexstring
d
.
data
=
common
.
Big
(
input
.
(
string
)
)
.
Bytes
()
d
.
data
=
common
.
Big
(
input
)
.
Bytes
()
default
:
d
.
data
=
nil
}
...
...
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