Skip to content

Commit

Permalink
patch: fromCbor -> fromCore for no deserialisation bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
micahkendall committed Sep 8, 2024
1 parent 56bccb4 commit 5e2b970
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/odd-peas-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@blaze-cardano/tx": patch
---

patch: fromCbor -> fromCore for no deserialisation bugs
2 changes: 1 addition & 1 deletion packages/blaze-tx/src/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ export class TxBuilder {
excessValue = this.getPitch();

this.body.setFee(bigintMax(this.fee, this.minimumFee) + this.feePadding);
this.balanceChange(Value.fromCbor(excessValue.toCbor()));
this.balanceChange(Value.fromCore(excessValue.toCore()));
const changeOutput = this.body.outputs()[this.changeOutputIndex!]!;
if (changeOutput.amount().coin() > excessValue.coin()) {
const excessDifference = value.merge(
Expand Down

0 comments on commit 5e2b970

Please sign in to comment.