HomePhabricator

[Cashtab] [bugfix] Patch genesis supply validation for ALP tokens in create…

Description

[Cashtab] [bugfix] Patch genesis supply validation for ALP tokens in create token form and ensure large number input fields are string

Summary:
The necessary functions to do this were written as part of a broader refactor for better supporting multiple token types. But they were not implemented on the create token screen.

Note: The issue of large number input field was discovered in this diff. I considered splitting it out. However I think this diff is a good demonstration of the issue, and the test here confirms the implementation.

So I think it is worth landing this as a single diff. If we revert, the prod app already has bad alp validation, and we need the precision fix to confirm that with a (good) test.

Test Plan: npm test

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

Differential Revision: https://reviews.bitcoinabc.org/D17459

Details

Provenance
bytesofmanAuthored on Jan 2 2025, 20:26
bytesofmanPushed on Jan 3 2025, 06:01
Reviewer
Restricted Project
Differential Revision
D17459: [Cashtab] [bugfix] Patch genesis supply validation for ALP tokens in create token form and ensure large number input fields are string
Parents
rABC3b6dd3e26a3e: [e.cash] Add Swapspace widget
Branches
Unknown
Tags
Unknown