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
a5dc0878
Commit
a5dc0878
authored
6 years ago
by
Corey Lin
Committed by
Felix Lange
6 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/vm, eth/tracers: use pointer receiver for GetRefund (#18018)
parent
212bf266
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
logger_test.go
core/vm/logger_test.go
+1
-1
tracer_test.go
eth/tracers/tracer_test.go
+1
-1
No files found.
core/vm/logger_test.go
View file @
a5dc0878
...
...
@@ -46,7 +46,7 @@ type dummyStatedb struct {
state
.
StateDB
}
func
(
dummyStatedb
)
GetRefund
()
uint64
{
return
1337
}
func
(
*
dummyStatedb
)
GetRefund
()
uint64
{
return
1337
}
func
TestStoreCapture
(
t
*
testing
.
T
)
{
var
(
...
...
This diff is collapsed.
Click to expand it.
eth/tracers/tracer_test.go
View file @
a5dc0878
...
...
@@ -48,7 +48,7 @@ type dummyStatedb struct {
state
.
StateDB
}
func
(
dummyStatedb
)
GetRefund
()
uint64
{
return
1337
}
func
(
*
dummyStatedb
)
GetRefund
()
uint64
{
return
1337
}
func
runTrace
(
tracer
*
Tracer
)
(
json
.
RawMessage
,
error
)
{
env
:=
vm
.
NewEVM
(
vm
.
Context
{
BlockNumber
:
big
.
NewInt
(
1
)},
&
dummyStatedb
{},
params
.
TestChainConfig
,
vm
.
Config
{
Debug
:
true
,
Tracer
:
tracer
})
...
...
This diff is collapsed.
Click to expand it.
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