Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 37bd596

Browse files
committedMay 14, 2024·
Adapt to Geth changes
1 parent 571eb13 commit 37bd596

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎internal/services/block_listener.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,12 @@ func (bl *BlockListener) ProcessBlock(ctx context.Context, blockNum *big.Int) er
352352
return fmt.Errorf("failed retrieving registry transaction %q: %w", vLog.TxHash, err)
353353
}
354354

355-
msg, err := tx.AsMessage(types.NewEIP155Signer(big.NewInt(bl.chainID)), nil)
355+
sender, err := types.Sender(types.LatestSignerForChainID(big.NewInt(bl.chainID)), tx)
356356
if err != nil {
357357
return fmt.Errorf("couldn't convert transaction %q to message: %w", vLog.TxHash, err)
358358
}
359359

360-
if slices.Contains(bl.relayAddresses, msg.From()) {
360+
if slices.Contains(bl.relayAddresses, sender) {
361361
fromMetaTx = true
362362
}
363363
}

0 commit comments

Comments
 (0)
Please sign in to comment.