common.Address & Hash in AccessTuple (#856)

This commit is contained in:
Andrew Ashikhmin 2023-01-26 11:53:50 +01:00 committed by GitHub
parent 4577ab4559
commit 8663a835ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,7 @@ import (
"github.com/ledgerwatch/secp256k1"
"golang.org/x/crypto/sha3"
"github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon-lib/common/length"
"github.com/ledgerwatch/erigon-lib/common/u256"
"github.com/ledgerwatch/erigon-lib/crypto"
@ -690,8 +691,8 @@ type AccessList []AccessTuple
// AccessTuple is the element type of an access list.
type AccessTuple struct {
StorageKeys [][32]byte `json:"storageKeys" gencodec:"required"`
Address [20]byte `json:"address" gencodec:"required"`
Address common.Address `json:"address"`
StorageKeys []common.Hash `json:"storageKeys"`
}
// StorageKeys returns the total number of storage keys in the access list.