Skip checking ethscan contract existence

This commit is contained in:
Roman Volosovskyi 2024-01-25 11:52:29 +01:00
parent bea0b5a63d
commit 73afe62782
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
1 changed files with 0 additions and 9 deletions

View File

@ -1,7 +1,6 @@
package contracts
import (
"context"
"errors"
"github.com/ethereum/go-ethereum/common"
@ -181,14 +180,6 @@ func (c *ContractMaker) NewEthScan(chainID uint64) (*ethscan.BalanceScanner, uin
if err != nil {
return nil, 0, err
}
bytecode, err := backend.CodeAt(context.Background(), contractAddr, nil)
if err != nil {
return nil, 0, err
}
if len(bytecode) == 0 {
return nil, 0, errors.New("is not a contract")
}
scanner, err := ethscan.NewBalanceScanner(
contractAddr,