From a198971b1551b3e66e3f2523a2eb29abd28f6029 Mon Sep 17 00:00:00 2001 From: Michele Nuzzi Date: Sat, 17 Aug 2024 22:24:30 +0200 Subject: [PATCH] remove some comments --- packages/onchain/src/IR/IRNodes/IRLetted.ts | 2 +- .../IR/toUPLC/subRoutines/handleHoistedAndReturnRoot/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/onchain/src/IR/IRNodes/IRLetted.ts b/packages/onchain/src/IR/IRNodes/IRLetted.ts index 4bcbd05a..b9aeeb52 100644 --- a/packages/onchain/src/IR/IRNodes/IRLetted.ts +++ b/packages/onchain/src/IR/IRNodes/IRLetted.ts @@ -351,7 +351,7 @@ export class IRLetted { return new IRLetted( this.dbn, - this.value.clone(), // cloned in constructor + this.value.clone(), { ...this.meta }, this.isHashPresent() ? this.hash : undefined ) diff --git a/packages/onchain/src/IR/toUPLC/subRoutines/handleHoistedAndReturnRoot/index.ts b/packages/onchain/src/IR/toUPLC/subRoutines/handleHoistedAndReturnRoot/index.ts index 05bc8b4b..72cf4420 100644 --- a/packages/onchain/src/IR/toUPLC/subRoutines/handleHoistedAndReturnRoot/index.ts +++ b/packages/onchain/src/IR/toUPLC/subRoutines/handleHoistedAndReturnRoot/index.ts @@ -20,7 +20,7 @@ export function handleHoistedAndReturnRoot( term: IRTerm ): IRTerm // we know `handleHoistedAndReturnRoot` modifies the term // so we are probably ok not cloning here // top level hoisted terms should be handled in `compileIRToUPLC` anyway - term = term.hoisted; // .clone() + term = term.hoisted; // we still need to remove this parent otherhwise there will be an unknown hoisted to handle term.parent = undefined;