fix: wallet downloader for l2 chain

This commit is contained in:
Anthony Laibe 2023-01-10 14:49:03 +01:00 committed by Anthony Laibe
parent 0da5e621ac
commit 04de916cba
2 changed files with 7 additions and 0 deletions

View File

@ -109,6 +109,9 @@ func (cc *Client) GetBaseFeeFromBlock(blockNumber *big.Int) (string, error) {
var feeHistory FeeHistory
err := cc.rpcClient.Call(&feeHistory, cc.ChainID, "eth_feeHistory", "0x1", (*hexutil.Big)(blockNumber), nil)
if err != nil {
if err.Error() == "the method eth_feeHistory does not exist/is not available" {
return "", nil
}
return "", err
}

View File

@ -9,6 +9,7 @@ import (
"github.com/ethereum/go-ethereum"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/log"
@ -159,6 +160,9 @@ func (d *ETHDownloader) getTransfersInBlock(ctx context.Context, blk *types.Bloc
from, err := types.Sender(d.signer, tx)
if err != nil {
if err == core.ErrTxTypeNotSupported {
continue
}
return nil, err
}