good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
42bc1944
Unverified
Commit
42bc1944
authored
Sep 28, 2021
by
Martin Holst Swende
Committed by
GitHub
Sep 28, 2021
Browse files
Options
Downloads
Patches
Plain Diff
graphql: add storage slots to access list (#23650)
Fixes #23640
parent
a541fbea
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
graphql/graphql.go
+3
-3
3 additions, 3 deletions
graphql/graphql.go
graphql/schema.go
+1
-1
1 addition, 1 deletion
graphql/schema.go
with
4 additions
and
4 deletions
graphql/graphql.go
+
3
−
3
View file @
42bc1944
...
@@ -158,14 +158,14 @@ func (l *Log) Data(ctx context.Context) hexutil.Bytes {
...
@@ -158,14 +158,14 @@ func (l *Log) Data(ctx context.Context) hexutil.Bytes {
// AccessTuple represents EIP-2930
// AccessTuple represents EIP-2930
type
AccessTuple
struct
{
type
AccessTuple
struct
{
address
common
.
Address
address
common
.
Address
storageKeys
*
[]
common
.
Hash
storageKeys
[]
common
.
Hash
}
}
func
(
at
*
AccessTuple
)
Address
(
ctx
context
.
Context
)
common
.
Address
{
func
(
at
*
AccessTuple
)
Address
(
ctx
context
.
Context
)
common
.
Address
{
return
at
.
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
return
at
.
storageKeys
}
}
...
@@ -442,7 +442,7 @@ func (t *Transaction) AccessList(ctx context.Context) (*[]*AccessTuple, error) {
...
@@ -442,7 +442,7 @@ func (t *Transaction) AccessList(ctx context.Context) (*[]*AccessTuple, error) {
for
_
,
al
:=
range
accessList
{
for
_
,
al
:=
range
accessList
{
ret
=
append
(
ret
,
&
AccessTuple
{
ret
=
append
(
ret
,
&
AccessTuple
{
address
:
al
.
Address
,
address
:
al
.
Address
,
storageKeys
:
&
al
.
StorageKeys
,
storageKeys
:
al
.
StorageKeys
,
})
})
}
}
return
&
ret
,
nil
return
&
ret
,
nil
...
...
This diff is collapsed.
Click to expand it.
graphql/schema.go
+
1
−
1
View file @
42bc1944
...
@@ -72,7 +72,7 @@ const schema string = `
...
@@ -72,7 +72,7 @@ const schema string = `
#EIP-2718
#EIP-2718
type AccessTuple{
type AccessTuple{
address: Address!
address: Address!
storageKeys : [Bytes32!]
storageKeys : [Bytes32!]
!
}
}
# Transaction is an Ethereum transaction.
# Transaction is an Ethereum transaction.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment