Skip to content

Commit b01944c

Browse files
fix(core): cleaned up several CSL objects that were leaking
1 parent 9e17bc5 commit b01944c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/CML/cmlToCore/cmlToCore.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export const nativeScript = (script: CML.NativeScript): Cardano.NativeScript =>
333333
};
334334
const scriptAll = scope.manage(script.as_script_all());
335335
for (let i = 0; i < scope.manage(scriptAll!.native_scripts()).len(); ++i) {
336-
coreScript.scripts.push(nativeScript(scope.manage(scriptAll!.native_scripts().get(i))));
336+
coreScript.scripts.push(nativeScript(scope.manage(scope.manage(scriptAll!.native_scripts()).get(i))));
337337
}
338338
break;
339339
}
@@ -345,7 +345,7 @@ export const nativeScript = (script: CML.NativeScript): Cardano.NativeScript =>
345345
};
346346
const scriptAny = scope.manage(script.as_script_any());
347347
for (let i = 0; i < scope.manage(scriptAny!.native_scripts()).len(); ++i) {
348-
coreScript.scripts.push(nativeScript(scope.manage(scriptAny!.native_scripts().get(i))));
348+
coreScript.scripts.push(nativeScript(scope.manage(scope.manage(scriptAny!.native_scripts()).get(i))));
349349
}
350350
break;
351351
}
@@ -359,7 +359,7 @@ export const nativeScript = (script: CML.NativeScript): Cardano.NativeScript =>
359359
};
360360

361361
for (let i = 0; i < scope.manage(scriptMofK!.native_scripts()).len(); ++i) {
362-
coreScript.scripts.push(nativeScript(scope.manage(scriptMofK!.native_scripts().get(i))));
362+
coreScript.scripts.push(nativeScript(scope.manage(scope.manage(scriptMofK!.native_scripts()).get(i))));
363363
}
364364
break;
365365
}

0 commit comments

Comments
 (0)