Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

[extension] single source of truth for address #54

Merged
merged 6 commits into from
Jan 13, 2024

Conversation

YBadiss
Copy link
Collaborator

@YBadiss YBadiss commented Jan 12, 2024

The address used for different actions (rate/create note, show owner's notes in the popup, ...) was not always the same.

This was caused by having both twitter.com and our extension to connect to metamask separately.

Instead we now always connect from the extension code, and we set the selected address in the storage of the extension so that code running on twitter.com can still retrieve it.

Also cleaned things up a bit, and did a refactoring of web3.js.

@YBadiss YBadiss self-assigned this Jan 12, 2024
@YBadiss YBadiss added the extension Target is the extension label Jan 12, 2024
@YBadiss YBadiss changed the title Single source of truth for address [extension] single source of truth for address Jan 13, 2024
@YBadiss YBadiss force-pushed the single-source-of-truth-for-address branch from 4266011 to de332fe Compare January 13, 2024 15:57
@YBadiss YBadiss merged commit 23c9d53 into main Jan 13, 2024
1 check passed
@YBadiss YBadiss deleted the single-source-of-truth-for-address branch January 13, 2024 15:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
extension Target is the extension
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant