"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PopulateReceiptTransform = void 0;
const streamWithEventPipe_1 = require("../../../../utils/streamWithEventPipe");
class PopulateReceiptTransform extends streamWithEventPipe_1.TransformWithEventPipe {
    constructor(evm) {
        super({ objectMode: true });
        this.evm = evm;
    }
    async _transform(tx, _, done) {
        try {
            tx = await this.evm.populateReceipt(tx);
        }
        catch { /* ignore error */ }
        this.push(tx);
        return done();
    }
}
exports.PopulateReceiptTransform = PopulateReceiptTransform;
//# sourceMappingURL=populateReceiptTransform.js.map