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
f311488d
Unverified
Commit
f311488d
authored
Aug 03, 2021
by
gary rong
Committed by
GitHub
Aug 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
internal/ethapi: fix trace log marshalling (#23292)
parent
c38fab91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
api.go
internal/ethapi/api.go
+2
-2
No files found.
internal/ethapi/api.go
View file @
f311488d
...
@@ -1120,7 +1120,7 @@ type StructLogRes struct {
...
@@ -1120,7 +1120,7 @@ type StructLogRes struct {
Gas
uint64
`json:"gas"`
Gas
uint64
`json:"gas"`
GasCost
uint64
`json:"gasCost"`
GasCost
uint64
`json:"gasCost"`
Depth
int
`json:"depth"`
Depth
int
`json:"depth"`
Error
error
`json:"error,omitempty"`
Error
string
`json:"error,omitempty"`
Stack
*
[]
string
`json:"stack,omitempty"`
Stack
*
[]
string
`json:"stack,omitempty"`
Memory
*
[]
string
`json:"memory,omitempty"`
Memory
*
[]
string
`json:"memory,omitempty"`
Storage
*
map
[
string
]
string
`json:"storage,omitempty"`
Storage
*
map
[
string
]
string
`json:"storage,omitempty"`
...
@@ -1136,7 +1136,7 @@ func FormatLogs(logs []vm.StructLog) []StructLogRes {
...
@@ -1136,7 +1136,7 @@ func FormatLogs(logs []vm.StructLog) []StructLogRes {
Gas
:
trace
.
Gas
,
Gas
:
trace
.
Gas
,
GasCost
:
trace
.
GasCost
,
GasCost
:
trace
.
GasCost
,
Depth
:
trace
.
Depth
,
Depth
:
trace
.
Depth
,
Error
:
trace
.
Err
,
Error
:
trace
.
Err
orString
()
,
}
}
if
trace
.
Stack
!=
nil
{
if
trace
.
Stack
!=
nil
{
stack
:=
make
([]
string
,
len
(
trace
.
Stack
))
stack
:=
make
([]
string
,
len
(
trace
.
Stack
))
...
...
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