Skip to content

Commit 4c0b0dc

Browse files
committed
ignore access list error
1 parent e579aa2 commit 4c0b0dc

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rollup/internal/controller/sender/estimategas.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package sender
22

33
import (
4-
"errors"
54
"fmt"
65
"math/big"
76

@@ -134,11 +133,11 @@ func (s *Sender) estimateGasLimit(to *common.Address, data []byte, sidecar *type
134133
accessList, gasLimitWithAccessList, errStr, rpcErr := s.gethClient.CreateAccessList(s.ctx, msg)
135134
if rpcErr != nil {
136135
log.Error("CreateAccessList RPC error", "error", rpcErr)
137-
return gasLimitWithoutAccessList, nil, rpcErr
136+
return gasLimitWithoutAccessList, nil, nil
138137
}
139138
if errStr != "" {
140139
log.Error("CreateAccessList reported error", "error", errStr)
141-
return gasLimitWithoutAccessList, nil, errors.New(errStr)
140+
return gasLimitWithoutAccessList, nil, nil
142141
}
143142

144143
// 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

0 commit comments

Comments
 (0)