Open NickKelly1 opened 16 hours ago
The pull request introduces enhancements to the input validation logic across multiple send transaction components for Bitcoin, Ethereum, and Solana wallet applications. Each component now employs a more robust validation process using the BigNumber
library to check for valid numerical inputs, specifically addressing NaN
values. The changes ensure that invalid inputs are effectively managed before further processing, while the overall structure and functionality of the components remain consistent.
File Path | Change Summary |
---|---|
packages/extension/src/providers/bitcoin/ui/send-transaction/index.vue |
Enhanced validation logic for sendAmount using BigNumber to check for NaN before comparing with assetMaxValue . |
packages/extension/src/providers/common/ui/send-transaction/send-input-amount.vue |
Updated onlyNumber method to allow valid numeric input and a single period; modified amount computed property to emit '0.' for empty input. |
packages/extension/src/providers/ethereum/ui/send-transaction/index.vue |
Updated validation logic to check for NaN values when parsing sendAmount , using BigNumber for enhanced robustness. |
packages/extension/src/providers/solana/ui/send-transaction/index.vue |
Improved validation in isInputsValid by checking for NaN before comparing sendAmount with assetMaxValue ; updated inputAmount to set empty input to '0'. |
NaN
values and utilize the BigNumber
library.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
:briefcase: Build Files chrome: enkrypt-chrome-f7ef55d2.zip firefox: enkrypt-firefox-f7ef55d2.zip
:syringe: Virus total analysis chrome: f7ef55d2 firefox: f7ef55d2
Summary by CodeRabbit
New Features
Bug Fixes
Documentation