-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Separate IO from txBuild and txBuildRaw functions #4491
Conversation
b77d23c
to
87cce2e
Compare
62bb191
to
14a9d3a
Compare
14a9d3a
to
a6d7b28
Compare
cardano-api/src/Cardano/Api/Fees.hs
Outdated
txFee = TxFeeExplicit explicitTxFees fee, | ||
txOuts = accountForNoChange | ||
(TxOut changeaddr balance TxOutDatumNone ReferenceScriptNone) | ||
(txOuts txbodycontent), | ||
txReturnCollateral = retColl, | ||
txTotalCollateral = reqCol | ||
} | ||
return (BalancedTxBody txbody3 (TxOut changeaddr balance TxOutDatumNone ReferenceScriptNone) fee) | ||
txbody3 <- | ||
first TxBodyError $ -- TODO: impossible to fail now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the TODO comment needs elaboration. The TODO should say what needs to be done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was there previously but I'll update it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
a6d7b28
to
4e353f8
Compare
bors r+ |
Build succeeded: |
First step towards condensing modules responsible for reading and validating the things required for transaction construction. The end goal is to expose these modules via
cardano-api
so users can implement their own transaction construction and/or validation functions.