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

[bug] Cannot add token to the wallet - W #1024

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/connect/src/env/token-bridge.mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export const ENV: Env = {
icon: "https://assets.coingecko.com/coins/images/35087/standard/womrhole_logo_full_color_rgb_2000px_72ppi_fb766ac85a.png?1708688954",
coinGeckoId: "wormhole",
decimals: {
Ethereum: 18,
Ethereum: 6,
Copy link
Contributor

Choose a reason for hiding this comment

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

This change could give erros in other cases, the solution should be modify the logic in this code https://github.com/wormhole-foundation/wormhole-connect/blob/5aa4b55c38b836da65e965111e2ab7278854275d/wormhole-connect/src/utils/index.ts#L116-L134, so that in this case (a token bridge route not an ntt https://wormholescan.io/#/tx/1/ec7372995d5cc8732397fb0ad35c0121e0eaa90d26f828a534cab54391b3a4f5/920703?view=advanced), instead of taking the Ethereum value, it takes the default value

default: 8,
Solana: 6,
},
Expand Down
Loading