Skip to content

Commit

Permalink
estimate gas without access list for remote signer
Browse files Browse the repository at this point in the history
  • Loading branch information
NazariiDenha committed Sep 30, 2024
1 parent 9d95701 commit 0a5e73a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rollup/internal/controller/sender/estimategas.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 4 additions & 0 deletions rollup/internal/controller/sender/transaction_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 0a5e73a

Please sign in to comment.