feat(walletconnect): add multichain routing and namespace approval for first non-EVM chain (Tron) #29428
Quality Gate failed
Failed conditions
59.5% Coverage on New Code (required ≥ 80%)
Annotations
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
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 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
Check warning on line 29 in app/core/WalletConnect/multichain/index.ts
sonarqubecloud / SonarCloud Code Analysis
Remove this unused import of 'normalizeCaipChainIdOutboundForWalletConnectTron'.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ34jh4ZJPAdnMVAWiXH&open=AZ34jh4ZJPAdnMVAWiXH&pullRequest=29428
Check warning on line 27 in app/core/WalletConnect/multichain/index.ts
sonarqubecloud / SonarCloud Code Analysis
Remove this unused import of 'getCompatibleTronCaipChainIdsForWalletConnect'.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ34jh4ZJPAdnMVAWiXF&open=AZ34jh4ZJPAdnMVAWiXF&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 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 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 28 in app/core/WalletConnect/multichain/index.ts
sonarqubecloud / SonarCloud Code Analysis
Remove this unused import of 'normalizeCaipChainIdInboundForWalletConnectTron'.
See more on https://sonarcloud.io/project/issues?id=metamask-mobile&issues=AZ34jh4ZJPAdnMVAWiXG&open=AZ34jh4ZJPAdnMVAWiXG&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