kodadot/nft-gallery

View on GitHub
composables/massmint/massMintHelpers.ts

Summary

Maintainability
B
4 hrs
Test Coverage

Function kusamaMintAndList has 50 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const kusamaMintAndList = (tokens) => {
  const status = ref(TransactionStatus.Unknown)
  const isLoading = ref(true)
  const collectionUpdated = ref(false)
  const blockNumber = ref<string>()
Severity: Minor
Found in composables/massmint/massMintHelpers.ts - About 2 hrs to fix

    Function getListForSellItems has 32 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const getListForSellItems = (
      createdNFTs: CreatedNFT[],
      tokens: TokenToMint[],
      blockNumber: string,
    ) => {
    Severity: Minor
    Found in composables/massmint/massMintHelpers.ts - About 1 hr to fix

      Function listForSell has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      export const listForSell = (mintedNFts: TokenToList[]) => {
        const isLoading = ref(true)
        const {
          blockNumber,
          transaction,
      Severity: Minor
      Found in composables/massmint/massMintHelpers.ts - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status