Skip to content

unexpected behavior of fee_for_output #727

@RaaCT0R

Description

@RaaCT0R

How can we estimate the fee changes on adding an output to a transaction?

Previously, I used the TransactionBuilder.fee_for_output function, but seems it's not working after v13?

You can find full script here: https://github.com/rosen-bridge/ui/blob/6eadd8a38b70a1e2204b7050c5084f2a6750cce0/networks/cardano/src/generateUnsignedTx.ts#L123

I tested the exact script with CSL v12, v13 and v14. Only in v12, the function worked correctly and in other versions, it returned 0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions