From 57b805187a242ab19dd5a4e5cad26da53e74082d Mon Sep 17 00:00:00 2001 From: Alex Forshtat Date: Thu, 30 May 2024 14:43:42 +0200 Subject: [PATCH] Remove unused EOA-era function --- core/state_processor_rip7560.go | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/core/state_processor_rip7560.go b/core/state_processor_rip7560.go index 03207bfffc..9da06cef69 100644 --- a/core/state_processor_rip7560.go +++ b/core/state_processor_rip7560.go @@ -378,27 +378,6 @@ func prepareAccountExecutionMessage(baseTx *types.Transaction, config *params.Ch } } -func prepareEOATargetExecutionMessage(baseTx *types.Transaction) (*Message, error) { - tx := baseTx.Rip7560TransactionData() - if len(tx.Data) < 20 { - return nil, errors.New("RIP-7560 sent by an EOA but the transaction data is too short") - } - var to common.Address = [20]byte(tx.Data[0:20]) - return &Message{ - From: *tx.Sender, - To: &to, - Value: tx.Value, - GasLimit: tx.Gas, - GasPrice: tx.GasFeeCap, - GasFeeCap: tx.GasFeeCap, - GasTipCap: tx.GasTipCap, - Data: tx.Data[20:], - AccessList: make(types.AccessList, 0), - SkipAccountChecks: true, - IsRip7560Frame: true, - }, nil -} - func preparePostOpMessage(vpr *ValidationPhaseResult, chainConfig *params.ChainConfig, executionResult *ExecutionResult) (*Message, error) { if len(vpr.PaymasterContext) == 0 { return nil, nil