Skip to content

Commit

Permalink
fix estimator bug
Browse files Browse the repository at this point in the history
  • Loading branch information
2qx committed Aug 17, 2023
1 parent 30d51d3 commit 1e9d8f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/phi/src/contract/perpetuity/Perpetuity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export class Perpetuity extends BaseUtxPhiContract implements UtxPhiIface {

if (utxos) tx = tx.from(utxos);

const size = await tx!.to(to).withAge(Number(this.period)).withoutChange().build();
const size = (await tx!.to(to).withAge(Number(this.period)).withoutChange().build()).length/2;

if (exAddress) {
const minerFee = fee ? fee : BigInt(size);
Expand Down

0 comments on commit 1e9d8f0

Please sign in to comment.