HomePhabricator

[Cashtab] [extension address passing p6] Extension runs an address fetch…

Description

[Cashtab] [extension address passing p6] Extension runs an address fetch function when requested to do so

Summary:
T2550

Depends on D12318

Update GetAddress.tsx so that handleGetAddress sends an address request to the browser extension.
Updage background.js in the browser extension so that it recognizes this request and runs this function.

Test Plan:
In one terminal,

cd web/cashtab-components
npm run storybook

In an other terminal,

cd web/cashtab
npm run extension

Navigate to brave://extension and click 'update'
Click 'inspect views in background page'
This will open a small window with a dev console

In your local storybook, click on the 'Get Address' button in the GetAddress component
Note that the dev console for background.js reads "User is requesting extension address" and "fetchAddress called in background.js'

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Subscribers: emack

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

Details

Provenance
bytesofmanAuthored on Oct 19 2022, 18:06
bytesofmanPushed on Oct 27 2022, 17:10
Reviewer
Restricted Project
Differential Revision
D12319: [Cashtab] [extension address passing p6] Extension runs an address fetch function when requested to do so
Parents
rABCb7c4eb13cbc4: [Cashtab] [extension address passing p5] Add detection of Cashtab installation…
Branches
Unknown
Tags
Unknown