butaneprotocol / blaze-cardano

🔥 The hottest transaction building library for Cardano
https://blaze.butane.dev
Apache License 2.0
58 stars 22 forks source link

fix tx fee issues #179

Closed joacohoyos closed 4 days ago

joacohoyos commented 2 months ago

Basically the core issue was that when balancing, at some point once we update the fee we might need to addInputs.

When addInput was being called, if the pkh of the added utxo was not the same as the ones added before it was never updating the faked witness set missing some bytes in the fee calculation.

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: fadac74b678a725c87442500e8bbcd78c460ec18

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages | Name | Type | | ----------------------- | ----- | | @blaze-cardano/core | Patch | | @blaze-cardano/tx | Patch | | @blaze-cardano/vm | Patch | | @blaze-cardano/emulator | Patch | | @blaze-cardano/query | Patch | | @blaze-cardano/sdk | Patch | | @blaze-cardano/uplc | Patch | | @blaze-cardano/wallet | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

joacohoyos commented 5 days ago

Fixes #208