From 167f26ed392e5a7a45515998892a7e2945283ae8 Mon Sep 17 00:00:00 2001 From: georgehao Date: Mon, 9 Mar 2026 22:01:33 +0800 Subject: [PATCH] fix: use empty access list if eth_createAccessList returns error (#1799) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Péter Garamvölgyi --- common/version/version.go | 2 +- rollup/internal/controller/sender/estimategas.go | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/common/version/version.go b/common/version/version.go index 8af04b2b3..170334002 100644 --- a/common/version/version.go +++ b/common/version/version.go @@ -5,7 +5,7 @@ import ( "runtime/debug" ) -var tag = "v4.7.12" +var tag = "v4.7.13" var commit = func() string { if info, ok := debug.ReadBuildInfo(); ok { diff --git a/rollup/internal/controller/sender/estimategas.go b/rollup/internal/controller/sender/estimategas.go index d9c7ed802..20d66beef 100644 --- a/rollup/internal/controller/sender/estimategas.go +++ b/rollup/internal/controller/sender/estimategas.go @@ -1,7 +1,6 @@ package sender import ( - "errors" "fmt" "math/big" @@ -134,11 +133,15 @@ func (s *Sender) estimateGasLimit(to *common.Address, data []byte, sidecar *type accessList, gasLimitWithAccessList, errStr, rpcErr := s.gethClient.CreateAccessList(s.ctx, msg) if rpcErr != nil { log.Error("CreateAccessList RPC error", "error", rpcErr) - return gasLimitWithoutAccessList, nil, rpcErr + // We ignore errors from eth_createAccessList and proceed + // with sending the transaction without an access list. + return gasLimitWithoutAccessList, nil, nil } if errStr != "" { + // We ignore errors from eth_createAccessList and proceed + // with sending the transaction without an access list. log.Error("CreateAccessList reported error", "error", errStr) - return gasLimitWithoutAccessList, nil, errors.New(errStr) + return gasLimitWithoutAccessList, nil, nil } // Fine-tune accessList because 'to' address is automatically included in the access list by the Ethereum protocol: https://github.com/ethereum/go-ethereum/blob/v1.13.10/core/state/statedb.go#L1322