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

feat: Add support for maximum assets per change output #103

Merged
merged 3 commits into from
Oct 6, 2023

Conversation

gavinharris-dev
Copy link
Contributor

This commit adds a new configuration option MAX_ASSETS_PER_CHANGE_OUTPUT to the config.js file. If the value is set, it limits the maximum number of assets per change output. The Tx class in tx-builder.js now checks this configuration and splits the change output into multiple outputs if the number of assets exceeds the limit.

This commit adds a new configuration option `MAX_ASSETS_PER_CHANGE_OUTPUT` to the `config.js` file. If the value is set, it limits the maximum number of assets per change output. The `Tx` class in `tx-builder.js` now checks this configuration and splits the change output into multiple outputs if the number of assets exceeds the limit.
@gavinharris-dev
Copy link
Contributor Author

This may help with #102 - probably will not 'solve' the issue however it will help when the users 'unfrack' their Wallets

@christianschmitz christianschmitz merged commit 3fac776 into HeliosLang:dev Oct 6, 2023
@christianschmitz
Copy link
Contributor

Thanks for this contribution Gavin!

At first I thought it would be better to keep this out of the library and leave it up to the user to implement such functionality during tx building.

But this addition is clean and only a few lines of code, and at some point in the future we can set MAX_ASSETS_PER_CHANGE_OUTPUT to a sane default so a typical Helios dev never has to think about this.

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