Skip to content

Commit

Permalink
Improve the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Lbqds committed Oct 30, 2023
1 parent de6e62d commit 29b5e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge_ui/src/utils/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function checkETHToken(tokenAddress: string) {

const tokenWhitelist = await loadETHTokenWhitelist()
if (tokenWhitelist.find((token) => token.address === tokenAddress) === undefined) {
throw new Error(`Token ${tokenAddress} does not exists in the token list`)
throw new Error(`Token ${tokenAddress} does not exist in the token list: https://tokenlists.org/token-list?url=tokens.1inch.eth`)
}
}

Expand Down

0 comments on commit 29b5e0f

Please sign in to comment.