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
efbd508d
Unverified
Commit
efbd508d
authored
Jan 31, 2023
by
rjl493456442
Committed by
GitHub
Jan 31, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eth/tracer: rename to revertReason (#26574)
parent
78d089b5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
51 deletions
+51
-51
calltrace_test.go
eth/tracers/internal/tracetest/calltrace_test.go
+11
-11
call.go
eth/tracers/native/call.go
+12
-12
gen_callframe_json.go
eth/tracers/native/gen_callframe_json.go
+28
-28
No files found.
eth/tracers/internal/tracetest/calltrace_test.go
View file @
efbd508d
...
@@ -62,7 +62,7 @@ type callTrace struct {
...
@@ -62,7 +62,7 @@ type callTrace struct {
Input
hexutil
.
Bytes
`json:"input"`
Input
hexutil
.
Bytes
`json:"input"`
Output
hexutil
.
Bytes
`json:"output,omitempty"`
Output
hexutil
.
Bytes
`json:"output,omitempty"`
Error
string
`json:"error,omitempty"`
Error
string
`json:"error,omitempty"`
Revert
al
string
`json:"revertReason,omitempty"`
Revert
Reason
string
`json:"revertReason,omitempty"`
Calls
[]
callTrace
`json:"calls,omitempty"`
Calls
[]
callTrace
`json:"calls,omitempty"`
Logs
[]
callLog
`json:"logs,omitempty"`
Logs
[]
callLog
`json:"logs,omitempty"`
Value
*
hexutil
.
Big
`json:"value,omitempty"`
Value
*
hexutil
.
Big
`json:"value,omitempty"`
...
...
eth/tracers/native/call.go
View file @
efbd508d
...
@@ -50,7 +50,7 @@ type callFrame struct {
...
@@ -50,7 +50,7 @@ type callFrame struct {
Input
[]
byte
`json:"input" rlp:"optional"`
Input
[]
byte
`json:"input" rlp:"optional"`
Output
[]
byte
`json:"output,omitempty" rlp:"optional"`
Output
[]
byte
`json:"output,omitempty" rlp:"optional"`
Error
string
`json:"error,omitempty" rlp:"optional"`
Error
string
`json:"error,omitempty" rlp:"optional"`
Revert
al
string
`json:"revertReason,omitempty"`
Revert
Reason
string
`json:"revertReason,omitempty"`
Calls
[]
callFrame
`json:"calls,omitempty" rlp:"optional"`
Calls
[]
callFrame
`json:"calls,omitempty" rlp:"optional"`
Logs
[]
callLog
`json:"logs,omitempty" rlp:"optional"`
Logs
[]
callLog
`json:"logs,omitempty" rlp:"optional"`
// Placed at end on purpose. The RLP will be decoded to 0 instead of
// Placed at end on purpose. The RLP will be decoded to 0 instead of
...
@@ -84,7 +84,7 @@ func (f *callFrame) processOutput(output []byte, err error) {
...
@@ -84,7 +84,7 @@ func (f *callFrame) processOutput(output []byte, err error) {
return
return
}
}
if
unpacked
,
err
:=
abi
.
UnpackRevert
(
output
);
err
==
nil
{
if
unpacked
,
err
:=
abi
.
UnpackRevert
(
output
);
err
==
nil
{
f
.
Revert
al
=
unpacked
f
.
Revert
Reason
=
unpacked
}
}
}
}
...
...
eth/tracers/native/gen_callframe_json.go
View file @
efbd508d
...
@@ -24,7 +24,7 @@ func (c callFrame) MarshalJSON() ([]byte, error) {
...
@@ -24,7 +24,7 @@ func (c callFrame) MarshalJSON() ([]byte, error) {
Input
hexutil
.
Bytes
`json:"input" rlp:"optional"`
Input
hexutil
.
Bytes
`json:"input" rlp:"optional"`
Output
hexutil
.
Bytes
`json:"output,omitempty" rlp:"optional"`
Output
hexutil
.
Bytes
`json:"output,omitempty" rlp:"optional"`
Error
string
`json:"error,omitempty" rlp:"optional"`
Error
string
`json:"error,omitempty" rlp:"optional"`
Revert
al
string
`json:"revertReason,omitempty"`
Revert
Reason
string
`json:"revertReason,omitempty"`
Calls
[]
callFrame
`json:"calls,omitempty" rlp:"optional"`
Calls
[]
callFrame
`json:"calls,omitempty" rlp:"optional"`
Logs
[]
callLog
`json:"logs,omitempty" rlp:"optional"`
Logs
[]
callLog
`json:"logs,omitempty" rlp:"optional"`
Value
*
hexutil
.
Big
`json:"value,omitempty" rlp:"optional"`
Value
*
hexutil
.
Big
`json:"value,omitempty" rlp:"optional"`
...
@@ -39,7 +39,7 @@ func (c callFrame) MarshalJSON() ([]byte, error) {
...
@@ -39,7 +39,7 @@ func (c callFrame) MarshalJSON() ([]byte, error) {
enc
.
Input
=
c
.
Input
enc
.
Input
=
c
.
Input
enc
.
Output
=
c
.
Output
enc
.
Output
=
c
.
Output
enc
.
Error
=
c
.
Error
enc
.
Error
=
c
.
Error
enc
.
Revert
al
=
c
.
Revertal
enc
.
Revert
Reason
=
c
.
RevertReason
enc
.
Calls
=
c
.
Calls
enc
.
Calls
=
c
.
Calls
enc
.
Logs
=
c
.
Logs
enc
.
Logs
=
c
.
Logs
enc
.
Value
=
(
*
hexutil
.
Big
)(
c
.
Value
)
enc
.
Value
=
(
*
hexutil
.
Big
)(
c
.
Value
)
...
@@ -58,7 +58,7 @@ func (c *callFrame) UnmarshalJSON(input []byte) error {
...
@@ -58,7 +58,7 @@ func (c *callFrame) UnmarshalJSON(input []byte) error {
Input
*
hexutil
.
Bytes
`json:"input" rlp:"optional"`
Input
*
hexutil
.
Bytes
`json:"input" rlp:"optional"`
Output
*
hexutil
.
Bytes
`json:"output,omitempty" rlp:"optional"`
Output
*
hexutil
.
Bytes
`json:"output,omitempty" rlp:"optional"`
Error
*
string
`json:"error,omitempty" rlp:"optional"`
Error
*
string
`json:"error,omitempty" rlp:"optional"`
Revert
al
*
string
`json:"revertReason,omitempty"`
Revert
Reason
*
string
`json:"revertReason,omitempty"`
Calls
[]
callFrame
`json:"calls,omitempty" rlp:"optional"`
Calls
[]
callFrame
`json:"calls,omitempty" rlp:"optional"`
Logs
[]
callLog
`json:"logs,omitempty" rlp:"optional"`
Logs
[]
callLog
`json:"logs,omitempty" rlp:"optional"`
Value
*
hexutil
.
Big
`json:"value,omitempty" rlp:"optional"`
Value
*
hexutil
.
Big
`json:"value,omitempty" rlp:"optional"`
...
@@ -91,8 +91,8 @@ func (c *callFrame) UnmarshalJSON(input []byte) error {
...
@@ -91,8 +91,8 @@ func (c *callFrame) UnmarshalJSON(input []byte) error {
if
dec
.
Error
!=
nil
{
if
dec
.
Error
!=
nil
{
c
.
Error
=
*
dec
.
Error
c
.
Error
=
*
dec
.
Error
}
}
if
dec
.
Revert
al
!=
nil
{
if
dec
.
Revert
Reason
!=
nil
{
c
.
Revert
al
=
*
dec
.
Revertal
c
.
Revert
Reason
=
*
dec
.
RevertReason
}
}
if
dec
.
Calls
!=
nil
{
if
dec
.
Calls
!=
nil
{
c
.
Calls
=
dec
.
Calls
c
.
Calls
=
dec
.
Calls
...
...
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