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
e7cd627d
Commit
e7cd627d
authored
Dec 29, 2017
by
croath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts/abi: fix for one output interface crashing
parent
f7ca03ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
argument.go
accounts/abi/argument.go
+10
-0
No files found.
accounts/abi/argument.go
View file @
e7cd627d
...
@@ -169,6 +169,16 @@ func (arguments Arguments) unpackAtomic(v interface{}, output []byte) error {
...
@@ -169,6 +169,16 @@ func (arguments Arguments) unpackAtomic(v interface{}, output []byte) error {
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
// if we reach this part, there is only one output member from the contract event.
// for mobile, the result type is always a slice.
if
reflect
.
Slice
==
value
.
Kind
()
&&
value
.
Len
()
>=
1
{
//check if it's not a byte slice
if
reflect
.
TypeOf
([]
byte
{})
!=
value
.
Type
()
{
value
=
value
.
Index
(
0
)
.
Elem
()
}
}
return
set
(
value
,
reflect
.
ValueOf
(
marshalledValue
),
arg
)
return
set
(
value
,
reflect
.
ValueOf
(
marshalledValue
),
arg
)
}
}
...
...
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