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
335760bf
Commit
335760bf
authored
Dec 22, 2018
by
Jeff Prestes
Committed by
Guillaume Ballet
Dec 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
accounts/abi: Brings out the msg defined at require statement in SC function (#17328)
parent
7df52e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
abi.go
accounts/abi/abi.go
+1
-1
No files found.
accounts/abi/abi.go
View file @
335760bf
...
@@ -82,7 +82,7 @@ func (abi ABI) Unpack(v interface{}, name string, output []byte) (err error) {
...
@@ -82,7 +82,7 @@ func (abi ABI) Unpack(v interface{}, name string, output []byte) (err error) {
// we need to decide whether we're calling a method or an event
// we need to decide whether we're calling a method or an event
if
method
,
ok
:=
abi
.
Methods
[
name
];
ok
{
if
method
,
ok
:=
abi
.
Methods
[
name
];
ok
{
if
len
(
output
)
%
32
!=
0
{
if
len
(
output
)
%
32
!=
0
{
return
fmt
.
Errorf
(
"abi: improperly formatted output
"
)
return
fmt
.
Errorf
(
"abi: improperly formatted output
: %s - Bytes: [%+v]"
,
string
(
output
),
output
)
}
}
return
method
.
Outputs
.
Unpack
(
v
,
output
)
return
method
.
Outputs
.
Unpack
(
v
,
output
)
}
else
if
event
,
ok
:=
abi
.
Events
[
name
];
ok
{
}
else
if
event
,
ok
:=
abi
.
Events
[
name
];
ok
{
...
...
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