Skip to content
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

fix: token icon not show on BSC #3383

Merged
merged 7 commits into from
Jun 21, 2021
Merged

fix: token icon not show on BSC #3383

merged 7 commits into from
Jun 21, 2021

Conversation

Lanttcat
Copy link
Contributor

closes #3305

@Lanttcat Lanttcat requested a review from guanbinrui June 16, 2021 08:30
guanbinrui
guanbinrui previously approved these changes Jun 17, 2021
UncleBill
UncleBill previously approved these changes Jun 17, 2021
@septs septs changed the title Fix the token icon not show on BSC fix: token icon not show on BSC Jun 17, 2021
@septs septs dismissed stale reviews from UncleBill and guanbinrui via 0941736 June 17, 2021 07:39
@@ -40,41 +41,25 @@ const useStyles = makeStyles((theme: Theme) => ({

export interface TokenIconProps extends withClasses<never> {
name?: string
logoURL?: string
logoURI?: string
Copy link
Contributor

Choose a reason for hiding this comment

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

why modify this field name?

guanbinrui
guanbinrui previously approved these changes Jun 17, 2021
@guanbinrui guanbinrui merged commit 976f5f4 into master Jun 21, 2021
@guanbinrui guanbinrui deleted the fix/token-icon-load branch June 21, 2021 06:20
guanbinrui pushed a commit that referenced this pull request Jun 21, 2021
* fix: change asset base url of binance token icon

* fix: fetch token icon uri from mask.json

* fix: perfect token icon map for missing in trust wallet and logoURI 404

* refactor: use isSameAddress to compare addresses in TokenIcon

* chore: move special icon list to json file (#3402)

* fix: typo error

* fix: should use incoming chainId when get token asset base uri

Co-authored-by: Septs <[email protected]>
Lanttcat pushed a commit that referenced this pull request Jun 23, 2021
* fix: change asset base url of binance token icon

* fix: fetch token icon uri from mask.json

* fix: perfect token icon map for missing in trust wallet and logoURI 404

* refactor: use isSameAddress to compare addresses in TokenIcon

* chore: move special icon list to json file (#3402)

* fix: typo error

* fix: should use incoming chainId when get token asset base uri

Co-authored-by: Septs <[email protected]>
(cherry picked from commit 976f5f4)
Lanttcat added a commit that referenced this pull request Jun 23, 2021
* fix: change asset base url of binance token icon

* fix: fetch token icon uri from mask.json

* fix: perfect token icon map for missing in trust wallet and logoURI 404

* refactor: use isSameAddress to compare addresses in TokenIcon

* chore: move special icon list to json file (#3402)

* fix: typo error

* fix: should use incoming chainId when get token asset base uri

Co-authored-by: Septs <[email protected]>

(cherry picked from commit 976f5f4)
Lanttcat added a commit that referenced this pull request Jun 23, 2021
* fix: change asset base url of binance token icon

* fix: fetch token icon uri from mask.json

* fix: perfect token icon map for missing in trust wallet and logoURI 404

* refactor: use isSameAddress to compare addresses in TokenIcon

* chore: move special icon list to json file (#3402)

* fix: typo error

* fix: should use incoming chainId when get token asset base uri

Co-authored-by: Septs <[email protected]>

(cherry picked from commit 976f5f4)
Lanttcat added a commit that referenced this pull request Jun 29, 2021
* fix: change asset base url of binance token icon

* fix: fetch token icon uri from mask.json

* fix: perfect token icon map for missing in trust wallet and logoURI 404

* refactor: use isSameAddress to compare addresses in TokenIcon

* chore: move special icon list to json file (#3402)

* fix: typo error

* fix: should use incoming chainId when get token asset base uri

Co-authored-by: Septs <[email protected]>

(cherry picked from commit 976f5f4)
Lanttcat added a commit that referenced this pull request Jun 29, 2021
* fix: change asset base url of binance token icon

* fix: fetch token icon uri from mask.json

* fix: perfect token icon map for missing in trust wallet and logoURI 404

* refactor: use isSameAddress to compare addresses in TokenIcon

* chore: move special icon list to json file (#3402)

* fix: typo error

* fix: should use incoming chainId when get token asset base uri

Co-authored-by: Septs <[email protected]>

(cherry picked from commit 976f5f4)
Lanttcat added a commit that referenced this pull request Jun 30, 2021
* fix: change asset base url of binance token icon

* fix: fetch token icon uri from mask.json

* fix: perfect token icon map for missing in trust wallet and logoURI 404

* refactor: use isSameAddress to compare addresses in TokenIcon

* chore: move special icon list to json file (#3402)

* fix: typo error

* fix: should use incoming chainId when get token asset base uri

Co-authored-by: Septs <[email protected]>

(cherry picked from commit 976f5f4)
Lanttcat added a commit that referenced this pull request Jun 30, 2021
* fix: change asset base url of binance token icon

* fix: fetch token icon uri from mask.json

* fix: perfect token icon map for missing in trust wallet and logoURI 404

* refactor: use isSameAddress to compare addresses in TokenIcon

* chore: move special icon list to json file (#3402)

* fix: typo error

* fix: should use incoming chainId when get token asset base uri

Co-authored-by: Septs <[email protected]>

(cherry picked from commit 976f5f4)
guanbinrui pushed a commit that referenced this pull request Jun 30, 2021
* feat: add searchable list component in theme package

* fix: token icon not show on BSC (#3383)

* fix: change asset base url of binance token icon

* fix: fetch token icon uri from mask.json

* fix: perfect token icon map for missing in trust wallet and logoURI 404

* refactor: use isSameAddress to compare addresses in TokenIcon

* chore: move special icon list to json file (#3402)

* fix: typo error

* fix: should use incoming chainId when get token asset base uri

Co-authored-by: Septs <[email protected]>

(cherry picked from commit 976f5f4)

* feat: add token list component in dashboard package

* chore: migrate useERC20TokensDetailedFromTokenLists to web3-shared

* chore: @DimensionDev to @masknet

* chore: fix pr comments

* fix: rename TokenIconSpeialIconList to TokenIconSpecialIconList

* fix: remove invalid style

* fix: use currySameAddress in token icon to compare token address

* chore: move TokenList and TokenIcon to share

* chore: remove unused useImageFailOver hook

* chore: move ErrorBoundary / QRCode / locales / useSnackbarCallback to shared from them

* fix: work around for cannot be named without a reference

* chore: remove unused package

* refactor: use deconstruction for getTokenAssetBaseURLConstants in token icon

* refactor: add interface NetworkSettings in setting

* fix: fix prettier

* refactor: use deconstruction for constant

* refactor: rename token list props

* fix: merge develop

* refactor: add comment for token icon load

* refactor: rename searchable list props to item keys to avoid react remove key

* chore: remove useless code

Co-authored-by: Jack Works <[email protected]>
Jack-Works added a commit that referenced this pull request Jul 15, 2021
* feat: add searchable list component in theme package

* fix: token icon not show on BSC (#3383)

* fix: change asset base url of binance token icon

* fix: fetch token icon uri from mask.json

* fix: perfect token icon map for missing in trust wallet and logoURI 404

* refactor: use isSameAddress to compare addresses in TokenIcon

* chore: move special icon list to json file (#3402)

* fix: typo error

* fix: should use incoming chainId when get token asset base uri

Co-authored-by: Septs <[email protected]>

(cherry picked from commit 976f5f4)

* feat: add token list component in dashboard package

* chore: migrate useERC20TokensDetailedFromTokenLists to web3-shared

* chore: @DimensionDev to @masknet

* chore: fix pr comments

* fix: rename TokenIconSpeialIconList to TokenIconSpecialIconList

* fix: remove invalid style

* fix: use currySameAddress in token icon to compare token address

* chore: move TokenList and TokenIcon to share

* chore: remove unused useImageFailOver hook

* chore: move ErrorBoundary / QRCode / locales / useSnackbarCallback to shared from them

* fix: work around for cannot be named without a reference

* chore: remove unused package

* refactor: use deconstruction for getTokenAssetBaseURLConstants in token icon

* refactor: add interface NetworkSettings in setting

* fix: fix prettier

* refactor: use deconstruction for constant

* refactor: rename token list props

* fix: merge develop

* refactor: add comment for token icon load

* refactor: rename searchable list props to item keys to avoid react remove key

* chore: remove useless code

Co-authored-by: Jack Works <[email protected]>
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.

[Bug] Fix the token icon url on BSC
4 participants