Page MenuHomePhabricator

[Cashtab] Remove support for sending to BCH or SLP addresses
ClosedPublic

Authored by bytesofman on Aug 17 2021, 20:28.

Details

Summary

T1735

Remove support for sending to addresses with bitcoincash: or simpleledger: prefixes, even if they are valid cashaddr.

This diff also modifies validation so that xec must be sent to an ecash: prefixed address and eTokens must be sent to an etoken: prefixed address.

Test Plan

npm start, try to send XEC to a bitcoincash: prefixed address and an etoken: prefixed address and note validation, try to send eToken to simpleledger: prefixed address and ecash: prefixed address and note validation

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

majcosta added a subscriber: majcosta.
majcosta added inline comments.
web/cashtab/src/components/Common/Ticker.js
134 ↗(On Diff #29425)

no need to pass a string here, just use a boolean, isToken = false or something

web/cashtab/src/components/Send/SendToken.js
199 ↗(On Diff #29425)

if the function signature is made to be self-documenting, this additional comment is superfluous

This revision is now accepted and ready to land.Aug 17 2021, 22:49
majcosta requested changes to this revision.Aug 17 2021, 22:49

fat fingers, sorry

This revision now requires changes to proceed.Aug 17 2021, 22:49

Replacing string with bool per review

This revision is now accepted and ready to land.Aug 18 2021, 00:09