Skip to content

Commit 42bc194

Browse files
authored
graphql: add storage slots to access list (#23650)
Fixes #23640
1 parent a541fbe commit 42bc194

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

graphql/graphql.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,14 @@ func (l *Log) Data(ctx context.Context) hexutil.Bytes {
158158
// AccessTuple represents EIP-2930
159159
type AccessTuple struct {
160160
address common.Address
161-
storageKeys *[]common.Hash
161+
storageKeys []common.Hash
162162
}
163163

164164
func (at *AccessTuple) Address(ctx context.Context) common.Address {
165165
return at.address
166166
}
167167

168-
func (at *AccessTuple) StorageKeys(ctx context.Context) *[]common.Hash {
168+
func (at *AccessTuple) StorageKeys(ctx context.Context) []common.Hash {
169169
return at.storageKeys
170170
}
171171

@@ -442,7 +442,7 @@ func (t *Transaction) AccessList(ctx context.Context) (*[]*AccessTuple, error) {
442442
for _, al := range accessList {
443443
ret = append(ret, &AccessTuple{
444444
address: al.Address,
445-
storageKeys: &al.StorageKeys,
445+
storageKeys: al.StorageKeys,
446446
})
447447
}
448448
return &ret, nil

graphql/schema.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const schema string = `
7272
#EIP-2718
7373
type AccessTuple{
7474
address: Address!
75-
storageKeys : [Bytes32!]
75+
storageKeys : [Bytes32!]!
7676
}
7777
7878
# Transaction is an Ethereum transaction.

0 commit comments

Comments
 (0)