[Cashtab] Patch decimal parsing of params in wallet, extension, and components
Summary:
T1865
Replace lingering hardcoded "8"s with the appropriate cashDecimals param. This supports correctly parsing a passed address amount param in satoshis as XEC (and not BCHA).
Because the extension parses such values from cashtab-components, the extension version and components version must both be bumped with this update.
Test Plan:
npm start
- Copy paste this string into the XEC Address field: ecash:qpmrf4857pu2pvn8hwdh0y64wwdmxqh7jc85c2zf3w?amount=2004016
- Verify that the app autocompletes 20040.16 in the XEC send field
- Run the latest version of the browser extension locally
npm run extension
Navigate to brave://extensions
Click "Load Unpacked" and select the /web/cashtab/extension/dist folder, or click "Update" if this is already in your extensions; should be version 1.0.2
Disable the production version of the extension so only the local version is running
- Load cashtab-components locally
cd /web/cashtab-components npm i npm run storybook
- Click on the dark blue button on various "CashtabBadge" components; verify that the extension loads with the correct XEC send amount
Reviewers: #bitcoin_abc, PiRK
Reviewed By: #bitcoin_abc, PiRK
Subscribers: PiRK
Differential Revision: https://reviews.bitcoinabc.org/D10138