-
-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: EIP747 watchAsset #84
Conversation
There was a problem hiding this 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 releaseLock = await this.mutex.acquire(); | ||
address = toChecksumAddress(address); | ||
const { allTokens, tokens } = this.state; | ||
const { networkType, selectedAddress } = this.config; | ||
const newEntry: Token = { address, symbol, decimals }; | ||
const newEntry: Token = { address, symbol, decimals, image }; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great.
* allow token image * watch accept and reject asset * update doc * tests
* allow token image * watch accept and reject asset * update doc * tests
This PR adds support to handle EIP747 from
AssetsController
and was mostly inspired mostly on how we handle transactions inTransactionController
.For now these methods only support
Token
s, but was meant to easily add new types of assets in the future.