diff --git a/op-service/txmgr/txmgr.go b/op-service/txmgr/txmgr.go index 25a52b3841e2..c10165b341a3 100644 --- a/op-service/txmgr/txmgr.go +++ b/op-service/txmgr/txmgr.go @@ -274,9 +274,8 @@ func (m *SimpleTxManager) craftTx(ctx context.Context, candidate TxCandidate) (* Data: candidate.TxData, Value: candidate.Value, } - // Set includeAccessList as default - includeAccessList := true - providedAccessList, gasUsed, _, err := m.backend.CreateAccessList(ctx, callArgs) + + accessList, _, _, err := m.backend.CreateAccessList(ctx, callArgs) if err != nil { return nil, err } @@ -299,9 +298,6 @@ func (m *SimpleTxManager) craftTx(ctx context.Context, candidate TxCandidate) (* if err != nil { return nil, fmt.Errorf("failed to estimate gas: %w", errutil.TryAddRevertReason(err)) } - if gasUsed >= gas { - includeAccessList = false - } gasLimit = gas } @@ -316,11 +312,6 @@ func (m *SimpleTxManager) craftTx(ctx context.Context, candidate TxCandidate) (* } } - accessList := &types.AccessList{} - if includeAccessList { - accessList = providedAccessList - } - var txMessage types.TxData if sidecar != nil { if blobBaseFee == nil {