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
42bc1944
Unverified
Commit
42bc1944
authored
Sep 28, 2021
by
Martin Holst Swende
Committed by
GitHub
Sep 28, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
graphql: add storage slots to access list (#23650)
Fixes #23640
parent
a541fbea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
graphql.go
graphql/graphql.go
+3
-3
schema.go
graphql/schema.go
+1
-1
No files found.
graphql/graphql.go
View file @
42bc1944
...
...
@@ -158,14 +158,14 @@ func (l *Log) Data(ctx context.Context) hexutil.Bytes {
// AccessTuple represents EIP-2930
type
AccessTuple
struct
{
address
common
.
Address
storageKeys
*
[]
common
.
Hash
storageKeys
[]
common
.
Hash
}
func
(
at
*
AccessTuple
)
Address
(
ctx
context
.
Context
)
common
.
Address
{
return
at
.
address
}
func
(
at
*
AccessTuple
)
StorageKeys
(
ctx
context
.
Context
)
*
[]
common
.
Hash
{
func
(
at
*
AccessTuple
)
StorageKeys
(
ctx
context
.
Context
)
[]
common
.
Hash
{
return
at
.
storageKeys
}
...
...
@@ -442,7 +442,7 @@ func (t *Transaction) AccessList(ctx context.Context) (*[]*AccessTuple, error) {
for
_
,
al
:=
range
accessList
{
ret
=
append
(
ret
,
&
AccessTuple
{
address
:
al
.
Address
,
storageKeys
:
&
al
.
StorageKeys
,
storageKeys
:
al
.
StorageKeys
,
})
}
return
&
ret
,
nil
...
...
graphql/schema.go
View file @
42bc1944
...
...
@@ -72,7 +72,7 @@ const schema string = `
#EIP-2718
type AccessTuple{
address: Address!
storageKeys : [Bytes32!]
storageKeys : [Bytes32!]
!
}
# Transaction is an Ethereum transaction.
...
...
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