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

Render custom assets with their defined decimal places #4862

Closed
wants to merge 2 commits into from

Conversation

mat-if
Copy link
Contributor

@mat-if mat-if commented Mar 29, 2024

Summary

  • Introduces CurrencyUtil.render as the new main entry point for rendering human
    readable values.
  • Modifies all existing usage of CurrencyUtil renderIron to use this new function
    instead. To do this, many places in the CLI need to now fetch the asset data
    from the RPC, as expected.

Testing Plan

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

@mat-if mat-if force-pushed the mat/add-decimals branch from c381b93 to aa002a9 Compare March 29, 2024 22:44
@mat-if mat-if changed the title wip Render custom assets with their defined decimal places Apr 5, 2024
@mat-if mat-if force-pushed the mat/add-decimals branch 2 times, most recently from 5e5122f to 8146dc4 Compare April 5, 2024 17:02
Base automatically changed from mat/add-asset-fields to staging April 5, 2024 17:02
- Introduces CurrencyUtil.render as the new main entry point for rendering human
readable values.
- Modifies all existing usage of CurrencyUtil renderIron to use this new function
instead. To do this, many places in the CLI need to now fetch the asset data
from the RPC, as expected.
@mat-if mat-if force-pushed the mat/add-decimals branch from 8146dc4 to a5163be Compare April 5, 2024 17:02
@mat-if mat-if closed this Apr 8, 2024
@mat-if mat-if deleted the mat/add-decimals branch April 8, 2024 21:29
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.

1 participant