diff --git a/l2geth/accounts/abi/bind/backends/simulated.go b/l2geth/accounts/abi/bind/backends/simulated.go index f7a7eed28c93..83701e91f4d5 100644 --- a/l2geth/accounts/abi/bind/backends/simulated.go +++ b/l2geth/accounts/abi/bind/backends/simulated.go @@ -601,9 +601,9 @@ func (m callmsg) Gas() uint64 { return m.CallMsg.Gas } func (m callmsg) Value() *big.Int { return m.CallMsg.Value } func (m callmsg) Data() []byte { return m.CallMsg.Data } -func (m callmsg) L1MessageSender() *common.Address { return m.CallMsg.L1MessageSender } -func (m callmsg) L1BlockNumber() *big.Int { return m.CallMsg.L1BlockNumber } -func (m callmsg) QueueOrigin() types.QueueOrigin { return m.CallMsg.QueueOrigin } +func (m callmsg) L1MessageSender() *common.Address { return m.CallMsg.L1MessageSender } +func (m callmsg) L1BlockNumber() *big.Int { return m.CallMsg.L1BlockNumber } +func (m callmsg) QueueOrigin() types.QueueOrigin { return m.CallMsg.QueueOrigin } // filterBackend implements filters.Backend to support filtering for logs without // taking bloom-bits acceleration structures into account. diff --git a/l2geth/core/types/transaction.go b/l2geth/core/types/transaction.go index 2f3744bedd4e..bb016fb22083 100644 --- a/l2geth/core/types/transaction.go +++ b/l2geth/core/types/transaction.go @@ -512,9 +512,9 @@ type Message struct { data []byte checkNonce bool - l1MessageSender *common.Address - l1BlockNumber *big.Int - queueOrigin QueueOrigin + l1MessageSender *common.Address + l1BlockNumber *big.Int + queueOrigin QueueOrigin } func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *big.Int, gasLimit uint64, gasPrice *big.Int, data []byte, checkNonce bool, l1MessageSender *common.Address, l1BlockNumber *big.Int, queueOrigin QueueOrigin) Message { @@ -528,9 +528,9 @@ func NewMessage(from common.Address, to *common.Address, nonce uint64, amount *b data: data, checkNonce: checkNonce, - l1BlockNumber: l1BlockNumber, - l1MessageSender: l1MessageSender, - queueOrigin: queueOrigin, + l1BlockNumber: l1BlockNumber, + l1MessageSender: l1MessageSender, + queueOrigin: queueOrigin, } } @@ -543,6 +543,6 @@ func (m Message) Nonce() uint64 { return m.nonce } func (m Message) Data() []byte { return m.data } func (m Message) CheckNonce() bool { return m.checkNonce } -func (m Message) L1MessageSender() *common.Address { return m.l1MessageSender } -func (m Message) L1BlockNumber() *big.Int { return m.l1BlockNumber } -func (m Message) QueueOrigin() QueueOrigin { return m.queueOrigin } \ No newline at end of file +func (m Message) L1MessageSender() *common.Address { return m.l1MessageSender } +func (m Message) L1BlockNumber() *big.Int { return m.l1BlockNumber } +func (m Message) QueueOrigin() QueueOrigin { return m.queueOrigin } diff --git a/l2geth/core/types/transaction_meta.go b/l2geth/core/types/transaction_meta.go index 3b1a2595e0e4..7f68e6530129 100644 --- a/l2geth/core/types/transaction_meta.go +++ b/l2geth/core/types/transaction_meta.go @@ -34,10 +34,10 @@ func (q QueueOrigin) String() string { //go:generate gencodec -type TransactionMeta -out gen_tx_meta_json.go type TransactionMeta struct { - L1BlockNumber *big.Int `json:"l1BlockNumber"` - L1Timestamp uint64 `json:"l1Timestamp"` - L1MessageSender *common.Address `json:"l1MessageSender" gencodec:"required"` - QueueOrigin QueueOrigin `json:"queueOrigin" gencodec:"required"` + L1BlockNumber *big.Int `json:"l1BlockNumber"` + L1Timestamp uint64 `json:"l1Timestamp"` + L1MessageSender *common.Address `json:"l1MessageSender" gencodec:"required"` + QueueOrigin QueueOrigin `json:"queueOrigin" gencodec:"required"` // The canonical transaction chain index Index *uint64 `json:"index" gencodec:"required"` // The queue index, nil for queue origin sequencer transactions @@ -48,13 +48,13 @@ type TransactionMeta struct { // NewTransactionMeta creates a TransactionMeta func NewTransactionMeta(l1BlockNumber *big.Int, l1timestamp uint64, l1MessageSender *common.Address, queueOrigin QueueOrigin, index *uint64, queueIndex *uint64, rawTransaction []byte) *TransactionMeta { return &TransactionMeta{ - L1BlockNumber: l1BlockNumber, - L1Timestamp: l1timestamp, - L1MessageSender: l1MessageSender, - QueueOrigin: queueOrigin, - Index: index, - QueueIndex: queueIndex, - RawTransaction: rawTransaction, + L1BlockNumber: l1BlockNumber, + L1Timestamp: l1timestamp, + L1MessageSender: l1MessageSender, + QueueOrigin: queueOrigin, + Index: index, + QueueIndex: queueIndex, + RawTransaction: rawTransaction, } } diff --git a/l2geth/interfaces.go b/l2geth/interfaces.go index 930458f933f3..aaf10f31c5d7 100644 --- a/l2geth/interfaces.go +++ b/l2geth/interfaces.go @@ -120,9 +120,9 @@ type CallMsg struct { Value *big.Int // amount of wei sent along with the call Data []byte // input data, usually an ABI-encoded contract method invocation - L1MessageSender *common.Address - L1BlockNumber *big.Int - QueueOrigin types.QueueOrigin + L1MessageSender *common.Address + L1BlockNumber *big.Int + QueueOrigin types.QueueOrigin } // A ContractCaller provides contract calls, essentially transactions that are executed by diff --git a/l2geth/internal/ethapi/api.go b/l2geth/internal/ethapi/api.go index fc09106813d1..17a0dfc8e491 100644 --- a/l2geth/internal/ethapi/api.go +++ b/l2geth/internal/ethapi/api.go @@ -2151,13 +2151,13 @@ func (api *PrivateDebugAPI) IngestTransactions(txs []*RPCTransaction) error { } meta := types.TransactionMeta{ - L1BlockNumber: l1BlockNumber, - L1Timestamp: l1Timestamp, - L1MessageSender: tx.L1TxOrigin, - QueueOrigin: queueOrigin, - Index: (*uint64)(tx.Index), - QueueIndex: (*uint64)(tx.QueueIndex), - RawTransaction: rawTransaction, + L1BlockNumber: l1BlockNumber, + L1Timestamp: l1Timestamp, + L1MessageSender: tx.L1TxOrigin, + QueueOrigin: queueOrigin, + Index: (*uint64)(tx.Index), + QueueIndex: (*uint64)(tx.QueueIndex), + RawTransaction: rawTransaction, } transaction.SetTransactionMeta(&meta) transactions[i] = transaction