Added mistmatched transaction hash when log are not aligned

This commit is contained in:
Matthieu Vachon 2023-12-12 21:26:52 -05:00
parent a7f50134bd
commit 3181acac69

View file

@ -317,7 +317,9 @@ func (f *Firehose) assignOrdinalAndIndexToReceiptLogs() {
if len(callLogs) != len(receiptsLogs) {
panic(fmt.Errorf(
"mismatch between Firehose call logs and Ethereum transaction receipt logs, transaction receipt has %d logs but there is %d Firehose call logs",
"mismatch between Firehose call logs and Ethereum transaction %s receipt logs at block #%d, transaction receipt has %d logs but there is %d Firehose call logs",
hex.EncodeToString(trx.Hash),
f.block.Number,
len(receiptsLogs),
len(callLogs),
))