polkadot-js/extension

View on GitHub
packages/extension-dapp/src/bundle.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function web3Enable has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function web3Enable (originName: string, compatInits: (() => Promise<boolean>)[] = []): Promise<InjectedExtension[]> {
  if (!originName) {
    throw new Error('You must pass a name for your app to the web3Enable function');
  }

Severity: Minor
Found in packages/extension-dapp/src/bundle.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status