-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Create NonStandardFallbackClass #838
Conversation
74f1c91
to
1d85241
Compare
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.
LGTM
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 a fine solution for finding at least some metadata from non-standard tokens. The important thing in my opinion is how we handle them in the extension. I.e. what happens when the extension sees UNKNOWN_STANDARD
.
Added some small comments too.
} | ||
|
||
try { | ||
decimals = await this.erc20Standard.getTokenSymbol(address); |
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.
symbol
@@ -10,6 +10,7 @@ export const RINKEBY_CHAIN_ID = '4'; | |||
export const ERC721 = 'ERC721'; | |||
export const ERC1155 = 'ERC1155'; | |||
export const ERC20 = 'ERC20'; | |||
export const UNKNOWN_STANDARD = 'UNKNOWN_STANDARD'; |
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.
The important thing is how we handle this in the extension imo.
|
||
if (tokenURI) { | ||
try { | ||
const response = await timeoutFetch(tokenURI); |
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 may potentially leak users IP. Needs to be an issue created if there isn't already.
very stale |
ADDED:
Checklist
Issue
Resolves #837