HomePhabricator

[ecash-lib] Export slpAmount function

Description

[ecash-lib] Export slpAmount function

Summary:
In implementing NFT trading in Cashtab, it is useful for this function to be available so Cashtab can validate the script of an advertised NFT.

I can see how this type of validation could be useful for other app dev use cases. There is not really a cost in exporting the function, as webpack will only include it in apps that use it.

Test Plan:
CI to confirm ecash-lib not affected.

I have not uploaded my latest working copy of D16328 yet, but locally, this change allows me to use the function in Cashtab, whereas without this change the function is not available.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
bytesofmanAuthored on Jun 26 2024, 17:54
bytesofmanPushed on Jun 26 2024, 19:52
Reviewer
Restricted Project
Differential Revision
D16379: [ecash-lib] Export slpAmount function
Parents
rABCf8c89801a7d4: [avalanche] Cleanup include in processor_tests
Branches
Unknown
Tags
Unknown