Page MenuHomePhabricator

[Cashtab] [extension address passing p3] Add storage permissions to extension and add address to extension storage
ClosedPublic

Authored by bytesofman on Oct 19 2022, 17:29.

Details

Summary

T2550

Depends on D12315

Add active extension wallet address to extension storage API on wallet load

Test Plan
cd web/cashtab
npm run extension

In brave browser, navigate to brave://extensions (or chrome/extensions in Chrome)
Click 'update' to update your local cashtab extension
Open your local Cashtab extension and pop it out to its own tab
Open the dev console
In the dev console, for the first run, storedAddress will be undefined, but you will see after this msg 'Address <yourAddress> saved to storage under key 'address''
Switch wallets
Note that it saves the new address to this key
Refresh the page
Note 'Active wallet address already in extension storage' msg in dev console

Diff Detail

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