polkadot-js/api

View on GitHub
packages/api-derive/src/staking/query.ts

Summary

Maintainability
A
45 mins
Test Coverage

Function parseDetails has 7 arguments (exceeds 5 allowed). Consider refactoring.
Open

function parseDetails (stashId: AccountId, controllerIdOpt: Option<AccountId> | null, nominatorsOpt: Option<PalletStakingNominations>, rewardDestination: PalletStakingRewardDestination, validatorPrefs: PalletStakingValidatorPrefs, exposure: PalletStakingExposure, stakingLedgerOpt: Option<PalletStakingStakingLedger>): DeriveStakingQuery {
Severity: Major
Found in packages/api-derive/src/staking/query.ts - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status