Skip to content

Commit

Permalink
implementing correct AccessList
Browse files Browse the repository at this point in the history
  • Loading branch information
x-senpai-x committed Oct 29, 2024
1 parent 33cb2fb commit ea87b1d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion execution/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"math/big"
"reflect"
)
type B256 = common.Hash

type FeeHistory struct {
BaseFeePerGas []hexutil.Big
Expand Down Expand Up @@ -50,7 +51,11 @@ type CallOpts struct {
Value *big.Int `json:"value,omitempty"`
Data []byte `json:"data,omitempty"`
}

type AccessListItem struct {
Address common.Address //I used Common here instead of common
StorageKeys []B256
}
type AccessList []AccessListItem
func (c *CallOpts) String() string {
return fmt.Sprintf("CallOpts{From: %v, To: %v, Gas: %v, GasPrice: %v, Value: %v, Data: 0x%x}",
c.From, c.To, c.Gas, c.GasPrice, c.Value, c.Data)
Expand Down

0 comments on commit ea87b1d

Please sign in to comment.