spacebudz / lucid

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
https://lucid.spacebudz.io
MIT License
339 stars 139 forks source link

fix memory leaks from Tx #233

Open joacohoyos opened 11 months ago

joacohoyos commented 11 months ago

Following the lines of Jshy in this #232. I'm trying to help in fixing the memory leaks related to the usage of the CML.

This pr addresses all the memory freeing for the Tx class.

The freeable entity is the same added by @yhsj in his PR. Also moved some functions to an util folder that I think are better than having them as free function in the same file as the class.

yHSJ commented 11 months ago

This should be closed in favor of https://github.com/spacebudz/lucid/pull/234