HomePhabricator

[Cashtab][Alias] Update SendToken.js to use api endpoint in place of…

Description

[Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias

Summary:
T3216

Update the alias lookup in sendToken.js component's address input field to use the alias api endpoint

Test Plan:

  • npm test
  • change the alias flag in Ticker.js to true
  • npm start
  • navigate to the Send Token page and click into any token
  • input a pre-registered alias in the address input field and ensure it parses to the right address
  • ensure the hyperlink underneath links correctly to the explorer page for this address
  • send a token amount to this alias and ensure successful broadcast, and sanity check tx details in explorer
  • input a valid eCash address and ensure it is accepted
  • input a valid prefix-less eCash address and ensure it is accepted
  • input an invalid eCash address and invalid alias and ensure it triggers validation error
  • input an unregistered alias and ensure the eCash Alias does not exist or yet to receive 1 confirmation validation error is displayed

Reviewers: bytesofman, #bitcoin_abc, Fabien

Reviewed By: bytesofman, #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
emackAuthored on Jul 14 2023, 14:44
emackPushed on Jul 29 2023, 05:12
Reviewer
Restricted Project
Differential Revision
D14266: [Cashtab][Alias] Update SendToken.js to use api endpoint in place of getAddressFromAlias
Parents
rABC86d486c76d8e: [Cashtab][Alias] Deprecate getPendingAliases
Branches
Unknown
Tags
Unknown