Skip to content

Feature: EIP747 watchAsset#84

Merged
estebanmino merged 4 commits intomasterfrom
feature/watch-asset
Apr 3, 2019
Merged

Feature: EIP747 watchAsset#84
estebanmino merged 4 commits intomasterfrom
feature/watch-asset

Conversation

@estebanmino
Copy link
Copy Markdown
Contributor

This PR adds support to handle EIP747 from AssetsController and was mostly inspired mostly on how we handle transactions in TransactionController.
For now these methods only support Tokens, but was meant to easily add new types of assets in the future.

Copy link
Copy Markdown
Contributor

@brunobar79 brunobar79 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great. Good stuff Esteban

const { allTokens, tokens } = this.state;
const { networkType, selectedAddress } = this.config;
const newEntry: Token = { address, symbol, decimals };
const newEntry: Token = { address, symbol, decimals, image };
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just making sure that the state generated before this PR doesn’t break due to the new image property being added

Copy link
Copy Markdown
Contributor

@bitpshr bitpshr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great.

@estebanmino estebanmino merged commit 7c312ee into master Apr 3, 2019
@whymarrh whymarrh deleted the feature/watch-asset branch November 5, 2019 17:43
mcmire pushed a commit to mcmire/core that referenced this pull request Jul 17, 2023
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* allow token image

* watch accept and reject asset

* update doc

* tests
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* allow token image

* watch accept and reject asset

* update doc

* tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants