Skip to content

Commit

Permalink
fix: wrong final_size calculation (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
joacohoyos authored Sep 20, 2024
1 parent 9d45156 commit 88ee831
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/mighty-news-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@blaze-cardano/tx": patch
---

Small fee calculation fix
2 changes: 1 addition & 1 deletion packages/blaze-tx/src/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ export class TxBuilder {
"A transaction was built using fee padding. This is useful for working around changes to fee calculation, but ultimately is a bandaid. If you find yourself needing this, please open a ticket at https://github.com/butaneprotocol/blaze-cardano so we can fix the underlying inaccuracy!",
);
}
let final_size = draft_tx.toCbor().length / 2;
let final_size = draft_size;
do {
const oldEvaluationFee = evaluationFee;
this.fee += BigInt(
Expand Down

0 comments on commit 88ee831

Please sign in to comment.