feat(walletconnect): add multichain routing and namespace approval for first non-EVM chain (Tron) #29428
Quality Gate failed
Failed conditions
60.0% Coverage on New Code (required ≥ 80%)
Annotations
Check warning on line 22 in app/core/Permissions/index.ts
sonarqubecloud / SonarCloud Code Analysis
Remove this unused import of 'getPermittedEthChainIds'.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ3Zdwdj384hUvdeVAyV&open=AZ3Zdwdj384hUvdeVAyV&pullRequest=29428
sonarqubecloud / SonarCloud Code Analysis
Complete the task associated to this "TODO" comment.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ398EXu_xOelAgCQx-v&open=AZ398EXu_xOelAgCQx-v&pullRequest=29428
Check warning on line 426 in app/core/WalletConnect/multichain/tron/index.ts
sonarqubecloud / SonarCloud Code Analysis
Use the opposite operator (!==) instead.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ3Zdwtk384hUvdeVAyb&open=AZ3Zdwtk384hUvdeVAyb&pullRequest=29428
Check warning on line 146 in app/core/WalletConnect/multichain/tron/index.ts
sonarqubecloud / SonarCloud Code Analysis
This assertion is unnecessary since it does not change the type of the expression.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ3ZoEmDfDERzwLppCLp&open=AZ3ZoEmDfDERzwLppCLp&pullRequest=29428
Check warning on line 271 in app/core/WalletConnect/multichain/tron/index.ts
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ3Zdwtk384hUvdeVAyX&open=AZ3Zdwtk384hUvdeVAyX&pullRequest=29428
Check warning on line 410 in app/core/WalletConnect/multichain/tron/index.ts
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ3Zdwtk384hUvdeVAyZ&open=AZ3Zdwtk384hUvdeVAyZ&pullRequest=29428
Check failure on line 267 in app/core/WalletConnect/multichain/tron/index.ts
sonarqubecloud / SonarCloud Code Analysis
Refactor this function to reduce its Cognitive Complexity from 32 to the 30 allowed.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ3Zdwtk384hUvdeVAyW&open=AZ3Zdwtk384hUvdeVAyW&pullRequest=29428
Check warning on line 274 in app/core/WalletConnect/multichain/tron/index.ts
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ3Zdwtk384hUvdeVAyY&open=AZ3Zdwtk384hUvdeVAyY&pullRequest=29428
Check warning on line 421 in app/core/WalletConnect/multichain/tron/index.ts
sonarqubecloud / SonarCloud Code Analysis
Extract this nested ternary operation into an independent statement.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ3Zdwtk384hUvdeVAya&open=AZ3Zdwtk384hUvdeVAya&pullRequest=29428