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

Modify constructBalancedTx to take LedgerEpochInfo #4858

Merged

Conversation

Jimbo4350
Copy link
Contributor

@Jimbo4350 Jimbo4350 commented Jan 30, 2023

Modifying constructBalancedTx to take LedgerEpochInfo instead of EraHistory mode makes it significantly easier to use this function with a service such as BlockFrost. Constructing an LedgerEpochInfo value can be done with the helper function fixedEpochInfo which requires the slot length and the epoch length. Both of these values can be retrieved from the ShelleyGenesis whereas constructing an EraHistory mode value is difficult without using a local node query (which necessitates running a node locally).

Modify constructBalancedTx to take LedgerEpochInfo instead of EraHistory
CardanoMode
@Jimbo4350 Jimbo4350 force-pushed the jordan/modify-makeTransactionBodyAutoBalance-epochinfo branch from afc1f25 to 180f41c Compare January 30, 2023 14:39
@Jimbo4350
Copy link
Contributor Author

bors r+

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Feb 2, 2023

Build succeeded:

@iohk-bors iohk-bors bot merged commit 658560d into master Feb 2, 2023
@iohk-bors iohk-bors bot deleted the jordan/modify-makeTransactionBodyAutoBalance-epochinfo branch February 2, 2023 16:56
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