Skip to content
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

Merged
merged 3 commits into from
Oct 17, 2022

Conversation

Jimbo4350
Copy link
Contributor

@Jimbo4350 Jimbo4350 commented Sep 29, 2022

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.

@Jimbo4350 Jimbo4350 force-pushed the jordan/separate-io-tx-build-2 branch 4 times, most recently from b77d23c to 87cce2e Compare October 9, 2022 10:54
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
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Jimbo4350 Jimbo4350 force-pushed the jordan/separate-io-tx-build-2 branch from a6d7b28 to 4e353f8 Compare October 17, 2022 11:44
@Jimbo4350
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Oct 17, 2022

Build succeeded:

@iohk-bors iohk-bors bot merged commit ab8d8d2 into master Oct 17, 2022
@iohk-bors iohk-bors bot deleted the jordan/separate-io-tx-build-2 branch October 17, 2022 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants