From 0a5e73a840c363cc4857dd3d0cfc98bd0924eb3e Mon Sep 17 00:00:00 2001 From: Nazarii Denha Date: Mon, 30 Sep 2024 19:55:14 +0200 Subject: [PATCH] estimate gas without access list for remote signer --- rollup/internal/controller/sender/estimategas.go | 3 ++- rollup/internal/controller/sender/transaction_signer.go | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rollup/internal/controller/sender/estimategas.go b/rollup/internal/controller/sender/estimategas.go index 9d3d5b74df..ca7945fc2d 100644 --- a/rollup/internal/controller/sender/estimategas.go +++ b/rollup/internal/controller/sender/estimategas.go @@ -136,7 +136,8 @@ func (s *Sender) estimateGasLimit(to *common.Address, data []byte, sidecar *geth return 0, nil, err } - if s.config.TxType == LegacyTxType { + if s.config.TxType == LegacyTxType || + s.transactionSigner.GetType() == RemoteSignerSignerType { // web3signer doesn't support access list return gasLimitWithoutAccessList, nil, nil } diff --git a/rollup/internal/controller/sender/transaction_signer.go b/rollup/internal/controller/sender/transaction_signer.go index 6250bd5458..ed768ac293 100644 --- a/rollup/internal/controller/sender/transaction_signer.go +++ b/rollup/internal/controller/sender/transaction_signer.go @@ -109,6 +109,10 @@ func (ts *TransactionSigner) GetAddr() common.Address { return ts.addr } +func (ts *TransactionSigner) GetType() string { + return ts.config.SignerType +} + // RpcTransaction transaction that will be send through rpc to web3Signer type RpcTransaction struct { From *common.Address `json:"from"`