[wallet] Download transactions with unspecified chainId

This commit is contained in:
Roman Volosovskyi 2021-04-15 11:13:50 +03:00
parent 050dca8336
commit ddc48c7cf4
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
0.75.1
0.75.2

View File

@ -106,7 +106,8 @@ func (d *ETHTransferDownloader) getTransfersInBlock(ctx context.Context, blk *ty
}
for _, tx := range blk.Transactions() {
if tx.ChainId().Cmp(d.chain) != 0 {
if tx.ChainId().Cmp(big.NewInt(0)) != 0 && tx.ChainId().Cmp(d.chain) != 0 {
log.Info("chain id mismatch", "tx hash", tx.Hash(), "tx chain id", tx.ChainId(), "expected chain id", d.chain)
continue
}
from, err := types.Sender(d.signer, tx)