Commit 2508c083 authored by Mark Tyneway's avatar Mark Tyneway

l2geth: update types to have access lists

parent 235c7af1
...@@ -600,6 +600,7 @@ func (m callmsg) GasPrice() *big.Int { return m.CallMsg.GasPrice } ...@@ -600,6 +600,7 @@ func (m callmsg) GasPrice() *big.Int { return m.CallMsg.GasPrice }
func (m callmsg) Gas() uint64 { return m.CallMsg.Gas } func (m callmsg) Gas() uint64 { return m.CallMsg.Gas }
func (m callmsg) Value() *big.Int { return m.CallMsg.Value } func (m callmsg) Value() *big.Int { return m.CallMsg.Value }
func (m callmsg) Data() []byte { return m.CallMsg.Data } func (m callmsg) Data() []byte { return m.CallMsg.Data }
func (m callmsg) AccessList() types.AccessList { return m.CallMsg.AccessList }
// UsingOVM // UsingOVM
// These getters return OVM specific fields // These getters return OVM specific fields
......
...@@ -479,6 +479,7 @@ type Message struct { ...@@ -479,6 +479,7 @@ type Message struct {
gasPrice *big.Int gasPrice *big.Int
data []byte data []byte
checkNonce bool checkNonce bool
accessList AccessList
l1Timestamp uint64 l1Timestamp uint64
l1BlockNumber *big.Int l1BlockNumber *big.Int
...@@ -495,6 +496,7 @@ func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *b ...@@ -495,6 +496,7 @@ func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *b
gasPrice: gasPrice, gasPrice: gasPrice,
data: data, data: data,
checkNonce: checkNonce, checkNonce: checkNonce,
accessList: AccessList{},
l1Timestamp: l1Timestamp, l1Timestamp: l1Timestamp,
l1BlockNumber: l1BlockNumber, l1BlockNumber: l1BlockNumber,
...@@ -510,6 +512,7 @@ func (m Message) Gas() uint64 { return m.gasLimit } ...@@ -510,6 +512,7 @@ func (m Message) Gas() uint64 { return m.gasLimit }
func (m Message) Nonce() uint64 { return m.nonce } func (m Message) Nonce() uint64 { return m.nonce }
func (m Message) Data() []byte { return m.data } func (m Message) Data() []byte { return m.data }
func (m Message) CheckNonce() bool { return m.checkNonce } func (m Message) CheckNonce() bool { return m.checkNonce }
func (m Message) AccessList() AccessList { return m.accessList }
func (m Message) L1Timestamp() uint64 { return m.l1Timestamp } func (m Message) L1Timestamp() uint64 { return m.l1Timestamp }
func (m Message) L1BlockNumber() *big.Int { return m.l1BlockNumber } func (m Message) L1BlockNumber() *big.Int { return m.l1BlockNumber }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment