-
Notifications
You must be signed in to change notification settings - Fork 77
[Issue-4247] Extension - Improve token enabling(Round 2) #4848
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
base: subwallet-dev
Are you sure you want to change the base?
Conversation
|
🚀 Deployed on https://pr-4848--sw-web-runner.netlify.app |
packages/extension-base/src/services/chain-service/handler/TonApi.ts
Outdated
Show resolved
Hide resolved
|
|
||
| if (typeValid) { | ||
| return subwalletApiSdk.balanceDetectionApi.getSubWalletTokenBalance(address) | ||
| return subwalletApiSdk.balanceDetectionApi.getSwEvmTokenBalance(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.
re-name
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.
fetchEvmHolderTokenSlugs
| const tokenSlugsWithBalance: string[] = []; | ||
|
|
||
| if (address) { | ||
| if (_isChainEvmCompatible(chainInfo)) { |
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.
Check if this condition is correct.
| return tokenBalanceSlugs; | ||
| } | ||
|
|
||
| public async getSubstrateTokensBalanceByChain (address: string, chainSlug: string, assetsByChain: Record<string, _ChainAsset>): Promise<string[]> { |
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.
Should merge these two function getEvmTokensBalanceByChain, getSubstrateTokensBalanceByChain with evmDetectBalanceChain, substrateDetectBalanceToken because of same logic.
No description provided.