Fix error msg params (#4357)

This commit is contained in:
Willian Mitsuda 2022-06-03 23:31:18 -03:00 committed by GitHub
parent 457e043401
commit e792adb131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -468,7 +468,7 @@ func (r Receipts) DeriveFields(hash common.Hash, number uint64, txs Transactions
return fmt.Errorf("transaction and receipt count mismatch, tx count = %d, receipts count = %d", len(txs), len(r))
}
if len(senders) != len(txs) {
return fmt.Errorf("transaction and senders count mismatch, tx count = %d, receipts count = %d", len(txs), len(r))
return fmt.Errorf("transaction and senders count mismatch, tx count = %d, senders count = %d", len(txs), len(senders))
}
for i := 0; i < len(r); i++ {
// The transaction type and hash can be retrieved from the transaction itself