HomePhabricator

[Cashtab] Improve error handling in validation.js

Description

[Cashtab] Improve error handling in validation.js

Summary: Added error handling for null and empty string inputs for the isValidEtokenAddress and isValidXecAddress functions within validation.js

Test Plan:
npm test
ensure validation.test.js test suites pass successfully

Reviewers: bytesofman, #bitcoin_abc

Reviewed By: bytesofman, #bitcoin_abc

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

Details

Provenance
emackAuthored on Jan 13 2022, 10:55
emackPushed on Jan 24 2022, 23:15
Reviewer
Restricted Project
Differential Revision
D10820: [Cashtab] Improve error handling in validation.js
Parents
rABC9d5d1a6e7432: [net processing] Guard m_continuation_block with m_block_inv_mutex
Branches
Unknown
Tags
Unknown