Fixed typo in Provider changes.

This commit is contained in:
Richard Moore 2023-02-02 22:20:41 -05:00
parent a646e4332e
commit 90afd9bd81

@ -439,7 +439,7 @@ export class Block implements BlockParams, Iterable<string> {
} }
getPrefetchedTransaction(indexOrHash: number | string): TransactionResponse { getPrefetchedTransaction(indexOrHash: number | string): TransactionResponse {
const txs = this.transactionResponses; const txs = this.prefetchedTransactions;
if (typeof(indexOrHash) === "number") { if (typeof(indexOrHash) === "number") {
return txs[indexOrHash]; return txs[indexOrHash];
} }