Skip to content

Sign 2.5

Sign 2.5 #298

Triggered via pull request February 20, 2024 19:30
@jakubuidjakubuid
synchronize #1296
sign_2.5
Status Success
Total duration 11m 1s
Artifacts

qodana_code_quality.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

56 warnings and 3 notices
JUnit malformed declaration: core/android/src/test/java/CacaoTestJvmTest.java#L16
Test class `CacaoTestJvmTest` is not constructable because it is not 'public'
Constant conditions: product/web3modal/src/main/kotlin/com/walletconnect/web3/modal/engine/coinbase/CoinbaseMapper.kt#L63
Value of 'jsonObject.getStringOrNull("gasPrice")?.convertHexValueToWeiValue()' is always null
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/ui/Web3WalletActivity.kt#L146
Condition 'ContextCompat.checkSelfPermission(this, android.Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED' is always false
Constant conditions: product/web3modal/src/main/kotlin/com/walletconnect/web3/modal/engine/coinbase/CoinbaseMapper.kt#L45
Value of 'jsonObject.getStringOrNull("gasPrice")?.convertHexValueToWeiValue()' is always null
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/domain/EthAccountDelegate.kt#L21
Condition 'sharedPreferences.getString(ACCOUNT_TAG, null) != null' is always true
Constant conditions: core/modal/src/main/kotlin/com/walletconnect/modal/utils/DeviceUtils.kt#L9
Condition 'LocalConfiguration.current.orientation == Configuration.ORIENTATION_LANDSCAPE' is always false
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/domain/EthAccountDelegate.kt#L21
Condition '(sharedPreferences.getString(ACCOUNT_TAG, null) != null) \&\& (sharedPreferences.getString(PRIVATE_KEY_TAG, null) != null) \&\& (sharedPreferences.getString(PUBLIC_KEY_TAG, null) != null)' is always true
Constant conditions: product/web3modal/src/main/kotlin/com/walletconnect/web3/modal/engine/coinbase/CoinbaseMapper.kt#L62
Value of 'jsonObject.getStringOrNull("nonce")?.hexToInt()' is always null
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/domain/EthAccountDelegate.kt#L21
Condition '(sharedPreferences.getString(ACCOUNT_TAG, null) != null) \&\& (sharedPreferences.getString(PRIVATE_KEY_TAG, null) != null)' is always true
Constant conditions: sample/dapp/src/main/kotlin/com/walletconnect/sample/dapp/ui/routes/composable_routes/chain_selection/ChainSelectionViewModel.kt#L110
Condition 'it.isSelected \&\& it.chainId == Chains.POLYGON_MATIC.chainId' is always false
Constant conditions: sample/dapp/src/main/kotlin/com/walletconnect/sample/dapp/ui/routes/composable_routes/chain_selection/ChainSelectionViewModel.kt#L86
Condition 'it.chainId != Chains.ETHEREUM_KOVAN.chainId' is always true when reached
Constant conditions: sample/dapp/src/main/kotlin/com/walletconnect/sample/dapp/ui/routes/composable_routes/chain_selection/ChainSelectionViewModel.kt#L97
Condition 'it.chainId == Chains.ETHEREUM_KOVAN.chainId' is always false when reached
Constant conditions: core/android/src/main/kotlin/com/walletconnect/android/internal/common/storage/rpc/JsonRpcHistory.kt#L67
Condition 'record != null \&\& record.response == null' is always false
Constant conditions: sample/dapp/src/main/kotlin/com/walletconnect/sample/dapp/ui/routes/composable_routes/chain_selection/ChainSelectionViewModel.kt#L110
Condition 'it.chainId == Chains.POLYGON_MATIC.chainId' is always false when reached
Constant conditions: protocol/sign/src/main/kotlin/com/walletconnect/sign/storage/sequence/SessionStorageRepository.kt#L37
Condition 'sessionDaoQueries.hasTopic(topic.value).executeAsOneOrNull() != null' is always true
Constant conditions: core/android/src/main/kotlin/com/walletconnect/android/internal/common/storage/pairing/PairingStorageRepository.kt#L36
Condition 'pairingQueries.hasTopic(topic = topic.value).executeAsOneOrNull() != null' is always true
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/domain/EthAccountDelegate.kt#L21
Condition 'sharedPreferences.getString(PRIVATE_KEY_TAG, null) != null' is always true when reached
Constant conditions: sample/wallet/src/main/kotlin/com/walletconnect/sample/wallet/domain/EthAccountDelegate.kt#L21
Condition 'sharedPreferences.getString(PUBLIC_KEY_TAG, null) != null' is always true when reached
Constant conditions: sample/dapp/src/main/kotlin/com/walletconnect/sample/dapp/ui/routes/composable_routes/session/SessionViewModel.kt#L63
Condition 'chain.chainNamespace == chainNamespace \&\& chain.chainReference == chainReference' is always false
Constant conditions: core/android/src/main/kotlin/com/walletconnect/android/internal/common/storage/metadata/MetadataStorageRepository.kt#L41
Condition 'metaDataQueries.getIdByTopicAndType(topic.value, type).executeAsOneOrNull() != null' is always true
Constant conditions: sample/dapp/src/main/kotlin/com/walletconnect/sample/dapp/ui/routes/composable_routes/account/AccountViewModel.kt#L125
Condition 'it.chainNamespace == chainNamespace \&\& it.chainReference == chainReference' is always false
Constant conditions: product/web3modal/src/main/kotlin/com/walletconnect/web3/modal/engine/coinbase/CoinbaseMapper.kt#L44
Value of 'jsonObject.getStringOrNull("nonce")?.hexToInt()' is always null
Constant conditions: sample/dapp/src/main/kotlin/com/walletconnect/sample/dapp/ui/routes/composable_routes/chain_selection/ChainSelectionViewModel.kt#L97
Condition 'it.isSelected \&\& it.chainId == Chains.ETHEREUM_KOVAN.chainId' is always false
Constant conditions: core/android/src/main/kotlin/com/walletconnect/android/internal/common/storage/rpc/JsonRpcHistory.kt#L67
Condition 'record.response == null' is always false when reached
qodana
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-java@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Constant conditions: product/web3modal/src/main/kotlin/com/walletconnect/web3/modal/ui/Web3ModalSheet.kt#L84
Value of '(this as? ComponentDialog)?.onBackPressedDispatcher' is always null