diff --git a/src/providers/provider.ts b/src/providers/provider.ts index 9f2293cb..3e54c805 100644 --- a/src/providers/provider.ts +++ b/src/providers/provider.ts @@ -1234,11 +1234,7 @@ export class TransactionReceipt implements TransactionReceiptParams, Iterable { - return new Log(log, provider); - }), - ); + this.#logs = Object.freeze(Array.isArray(tx.logs) ? tx.logs.map((log) => new Log(log, provider)) : []); let gasPrice = BN_0; if (tx.effectiveGasPrice != null) {